|
|
@ -91,9 +91,11 @@ ynh_restore_file --origin_path="$final_path" |
|
|
|
|
|
|
|
|
# Restore permissions on app files |
|
|
# Restore permissions on app files |
|
|
chown -R $app: "$final_path" |
|
|
chown -R $app: "$final_path" |
|
|
# Home directory of the user need to be owned by root to allow |
|
|
|
|
|
|
|
|
# Home directory of the user needs to be owned by root to allow |
|
|
# SFTP connections |
|
|
# SFTP connections |
|
|
chown root:$app "$final_path" |
|
|
|
|
|
|
|
|
chown root:root "$final_path" |
|
|
|
|
|
setfacl -m g:$app:r-x "$final_path" |
|
|
|
|
|
setfacl -m g:www-data:r-x "$final_path" |
|
|
chmod o-rwx "$final_path" |
|
|
chmod o-rwx "$final_path" |
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
|