From e1799e0d5012cd474cb71bba0f1762dafe26fdcd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 22 Dec 2020 11:17:51 +0100 Subject: [PATCH] Fix --- scripts/install | 2 +- scripts/upgrade | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 9e41513..192b249 100755 --- a/scripts/install +++ b/scripts/install @@ -125,7 +125,7 @@ ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion ynh_script_progression --message="Securing files and directories..." # Set permissions to app files -chown -R $app: $final_path +chown -R $app:$app $final_path #================================================= # SETUP SSOWAT diff --git a/scripts/upgrade b/scripts/upgrade index 1ad7c33..363cc15 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -144,7 +144,7 @@ ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" if [[ -f "$final_path/config/config.ini.php" ]]; then pushd "$final_path" - chown -R www-data:www-data $final_path/tmp + chown -R $app:$app $final_path/tmp/* ynh_exec_as $app ./console core:update popd fi @@ -155,6 +155,7 @@ fi if [ ! "$(ls -A "$final_path/plugins/Morpheus/icons")" ] then + ynh_script_progression --message="Installating Morpheus icons..." ynh_setup_source --dest_dir="$final_path/plugins/Morpheus/icons" --source_id="icons" chmod -R 755 "$final_path/plugins/Morpheus" fi @@ -180,7 +181,7 @@ ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion ynh_script_progression --message="Securing files and directories..." # Set permissions on app files -chown -R $app: $final_path +chown -R $app:$app $final_path #================================================= # RELOAD NGINX