From 1f7257678ff29769ef74cc40c94eaea82172f8cb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 19 Nov 2021 11:56:02 +0100 Subject: [PATCH] Fix --- scripts/install | 4 ++++ scripts/upgrade | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 3a263b8..e83bdb2 100644 --- a/scripts/install +++ b/scripts/install @@ -103,6 +103,10 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:$app "$final_path" +if [ -d "/tmp/ufs" ]; then + chown -R $app:$app "/tmp/ufs" +fi + #================================================= # NGINX CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 40c2821..9b6f82c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -61,6 +61,10 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +if [ -d "/tmp/ufs" ]; then + chown -R $app:$app "/tmp/ufs" +fi + #================================================= # STANDARD UPGRADE STEPS #=================================================