mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-26 00:41:04 +01:00
Optimized right permission setting
This commit is contained in:
parent
32d4927ad4
commit
31c7950547
@ -6,8 +6,7 @@
|
|||||||
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
|
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
|
||||||
bash "$SCRIPT_PATH""data/import-from-system.sh" reverse
|
bash "$SCRIPT_PATH""data/import-from-system.sh" reverse
|
||||||
info "Setting right permissions for importet files..." &&
|
info "Setting right permissions for importet files..." &&
|
||||||
chown -R "$USER":"$USER" ~ &&
|
|
||||||
chmod -R 700 ~/.ssh &&
|
chmod -R 700 ~/.ssh &&
|
||||||
chmod 600 ~/.ssh/id_rsa &&
|
chmod 600 ~/.ssh/id_rsa &&
|
||||||
chmod 600 ~/.ssh/id_rsa.pub ||
|
chmod 600 ~/.ssh/id_rsa.pub || error "Failed to set correct ssh permissions"
|
||||||
error
|
chown -R "$USER":"$USER" ~ || warning "Not all files could be owned by user \"$USER\"..."
|
||||||
|
Loading…
Reference in New Issue
Block a user