diff --git a/scripts/data/export-to-system.sh b/scripts/data/export-to-system.sh index 852cdf4..698b6ab 100644 --- a/scripts/data/export-to-system.sh +++ b/scripts/data/export-to-system.sh @@ -6,8 +6,7 @@ source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1) bash "$SCRIPT_PATH""data/import-from-system.sh" reverse info "Setting right permissions for importet files..." && -chown -R "$USER":"$USER" ~ && chmod -R 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa && -chmod 600 ~/.ssh/id_rsa.pub || -error +chmod 600 ~/.ssh/id_rsa.pub || error "Failed to set correct ssh permissions" +chown -R "$USER":"$USER" ~ || warning "Not all files could be owned by user \"$USER\"..."