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 #=================================================