linux-image-manager/scripts/data/export-to-system.sh

12 lines
460 B
Bash
Raw Normal View History

2019-09-30 15:29:28 +02:00
#!/bin/bash
2019-09-30 16:13:26 +02:00
# Executes the import script in reverse mode
# @author Kevin Veen-Birkenbach [aka. Frantz]
2019-10-01 12:30:27 +02:00
# shellcheck source=/dev/null # Deactivate SC1090
2020-05-02 12:39:00 +02:00
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
bash "$SCRIPT_PATH""data/import-from-system.sh" reverse
2020-05-18 21:29:23 +02:00
info "Setting right permissions for importet files..."
chown -R $USER:$USER ~
2020-05-19 13:51:31 +02:00
chmod -R 700 ~/.ssh
2020-05-18 21:29:23 +02:00
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub