mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-12-22 09:35:06 +01:00
Add correct user to ssh.app group so multi-instance works.
This commit is contained in:
parent
d15c6ada1d
commit
a1a5b2ef35
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user