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