diff --git a/scripts/install b/scripts/install index 7ad7cba..7e44bbd 100644 --- a/scripts/install +++ b/scripts/install @@ -168,7 +168,8 @@ ynh_secure_remove --file=/tmp/admin.sql ynh_script_progression --message="Securing files and directories..." # Set permissions to ampache directory -chown -R $app: $final_path +chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 $final_path/config/ampache.cfg.php #================================================= diff --git a/scripts/restore b/scripts/restore index 2ff8cf2..cfd2b5c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -69,7 +69,8 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Restoring user rights..." # Restore permissions on app files -chown -R $app: $final_path +chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 $final_path/config/ampache.cfg.php #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 802f538..c361b16 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -179,7 +179,8 @@ fi ynh_script_progression --message="Securing files and directories..." # Set permissions on app files -chown -R $app: $final_path +chmod -R o-rwx $final_path +chown -R $app:$app $final_path chmod 600 $final_path/config/ampache.cfg.php #=================================================