diff --git a/scripts/install b/scripts/install index 44120f3..ab2bbca 100755 --- a/scripts/install +++ b/scripts/install @@ -138,6 +138,8 @@ ynh_permission_update --permission="main" --remove="visitors" # Set permissions to app files chown -R $app:$app $final_path +chown -R www-data:www-data $final_path/writable +chown -R www-data:www-data $final_path/public/media chmod 600 $final_path/.env #================================================= diff --git a/scripts/restore b/scripts/restore index 563c0c2..df2d83c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -73,6 +73,8 @@ ynh_restore_file --origin_path="$final_path" # Set permissions to app files chown -R $app:$app $final_path +chown -R www-data:www-data $final_path/writable +chown -R www-data:www-data $final_path/public/media chmod 600 $final_path/.env #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fcd7c41..fec4b5b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -126,6 +126,8 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" # Set permissions to app files chown -R $app:$app $final_path +chown -R www-data:www-data $final_path/writable +chown -R www-data:www-data $final_path/public/media chmod 600 $final_path/.env #=================================================