From 2560117ae96c28693b16f797e5caa828e1169140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 23 Jul 2022 10:04:02 +0200 Subject: [PATCH] Fix --- scripts/install | 2 +- scripts/restore | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index c40153d..53e8a9d 100644 --- a/scripts/install +++ b/scripts/install @@ -37,7 +37,7 @@ app=$YNH_APP_INSTANCE_NAME #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= -ynh_script_progression --message="Validating installation parameters..." --time --weight=1 +ynh_script_progression --message="Validating installation parameters..." --weight=1 final_path=/opt/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" diff --git a/scripts/restore b/scripts/restore index 465d931..f97efdc 100644 --- a/scripts/restore +++ b/scripts/restore @@ -56,8 +56,9 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= 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" #--home_dir="$datadir" --use_shell +ynh_system_user_create --username=$app --home_dir=$datadir --use_shell +# Add ssh permission for Gitea user +adduser $app ssh.app #================================================= # RESTORE THE APP MAIN DIR