diff --git a/scripts/install b/scripts/install index 172f4b6..ee0aa9a 100644 --- a/scripts/install +++ b/scripts/install @@ -111,7 +111,7 @@ ynh_store_file_checksum --file="$final_path/settings.php" #================================================= # Set permissions to app files -chown -R root: $final_path +chown -R $app: $final_path chmod o-rwx $final_path chown -R $app:www-data $final_path/files chmod -R 770 $final_path/files diff --git a/scripts/restore b/scripts/restore index 83cd632..537bc2b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,7 +66,7 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Set permissions to app files -chown -R root: $final_path +chown -R $app: $final_path chmod o-rwx $final_path chown -R $app:www-data $final_path/files chmod -R 770 $final_path/files diff --git a/scripts/upgrade b/scripts/upgrade index 5fdece7..49575de 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,7 +140,7 @@ fi #================================================= # Set permissions to app files -chown -R root: $final_path +chown -R $app: $final_path chmod o-rwx $final_path chown -R $app:www-data $final_path/files chmod -R 770 $final_path/files