From a1a5b2ef351ce7801b2dd05115f1b71eace866b7 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 17 Feb 2022 15:35:44 -0600 Subject: [PATCH] Add correct user to ssh.app group so multi-instance works. --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index bf79e38..3bd19b0 100644 --- a/scripts/install +++ b/scripts/install @@ -66,8 +66,8 @@ ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass" # Add users ynh_script_progression --message="Configuring system user..." ynh_system_user_create --username=$app --home_dir=/home/$app --use_shell -# Add ssh permission for user gitea -adduser gitea ssh.app +# Add ssh permission for gitea user +adduser $app ssh.app # create needed directories create_dir diff --git a/scripts/upgrade b/scripts/upgrade index 400e240..0efc74d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -234,8 +234,8 @@ fi ynh_script_progression --message="Register gitea service..." yunohost service add "$app" --log "/var/log/$app/gitea.log" -# Add ssh permission for user gitea -adduser gitea ssh.app +# Add ssh permission for gitea user +adduser $app ssh.app # Set permissions ynh_script_progression --message="Protecting directory"