diff --git a/scripts/install b/scripts/install index ab2bbca..92bce99 100755 --- a/scripts/install +++ b/scripts/install @@ -137,9 +137,7 @@ 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 +chown -R $app: $final_path chmod 600 $final_path/.env #================================================= diff --git a/scripts/restore b/scripts/restore index df2d83c..563c0c2 100755 --- a/scripts/restore +++ b/scripts/restore @@ -73,8 +73,6 @@ 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 fec4b5b..4d00011 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -125,9 +125,7 @@ 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 +chown -R $app: $final_path chmod 600 $final_path/.env #=================================================