diff --git a/scripts/restore b/scripts/restore index 1813a3e..faa5fd6 100755 --- a/scripts/restore +++ b/scripts/restore @@ -72,14 +72,17 @@ ynh_system_user_create --username="$app" --home_dir="$final_path" --use_shell -- #================================================= ynh_script_progression --message="Restoring the app main directory..." --weight=1 -ynh_restore_file --origin_path="$final_path" # /opt/yunohost/mopidy +ynh_restore_file --origin_path="$final_path" #================================================= # RESTORE USER RIGHTS #================================================= # Restore permissions on app files -#chown -R root: $final_path + +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # SPECIFIC RESTORATION @@ -104,7 +107,7 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description "Mopidy music server" --log="/var/log/$app/$app.log" +yunohost service add $app --description="Mopidy music server" --log="/var/log/$app/$app.log" #================================================= # RESTORE VARIOUS FILES