Add correct user to ssh.app group so multi-instance works.

This commit is contained in:
Nolan Darilek 2022-02-17 15:35:44 -06:00
parent d15c6ada1d
commit a1a5b2ef35
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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"