diff --git a/check_process b/check_process index 6a17eab..daac097 100644 --- a/check_process +++ b/check_process @@ -1,8 +1,6 @@ # See here for more information # https://github.com/YunoHost/package_check#syntax-check_process-file -# Move this file from check_process.default to check_process when you have filled it. - ;; Test complet ; Manifest domain="domain.tld" (DOMAIN) @@ -17,7 +15,6 @@ setup_private=1 setup_public=1 upgrade=1 - upgrade=1 from_commit=bd2c87a6fd4212771f9c06e7965598a5ea744ffc backup_restore=1 multi_instance=1 change_url=1 diff --git a/scripts/restore b/scripts/restore index ada8d63..0933759 100755 --- a/scripts/restore +++ b/scripts/restore @@ -46,6 +46,14 @@ ynh_script_progression --message="Restoring the NGINX configuration..." ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +#================================================= +# RECREATE THE DEDICATED USER +#================================================= +ynh_script_progression --message="Recreating the dedicated system user..." --weight=1 + +# Create the dedicated user (if not existing) +ynh_system_user_create --username=$app --home_dir="$final_path" + #================================================= # RESTORE THE APP MAIN DIR #================================================= @@ -60,6 +68,7 @@ ynh_script_progression --message="Restoring user rights..." # Restore permissions on app files chown -R $app:www-data $final_path +chmod -R o-rwx $final_path chmod -R 775 $final_path #=================================================