mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-21 18:41:35 +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
|
# Add users
|
||||||
ynh_script_progression --message="Configuring system user..."
|
ynh_script_progression --message="Configuring system user..."
|
||||||
ynh_system_user_create --username=$app --home_dir=/home/$app --use_shell
|
ynh_system_user_create --username=$app --home_dir=/home/$app --use_shell
|
||||||
# Add ssh permission for user gitea
|
# Add ssh permission for gitea user
|
||||||
adduser gitea ssh.app
|
adduser $app ssh.app
|
||||||
|
|
||||||
# create needed directories
|
# create needed directories
|
||||||
create_dir
|
create_dir
|
||||||
|
@ -234,8 +234,8 @@ fi
|
|||||||
ynh_script_progression --message="Register gitea service..."
|
ynh_script_progression --message="Register gitea service..."
|
||||||
yunohost service add "$app" --log "/var/log/$app/gitea.log"
|
yunohost service add "$app" --log "/var/log/$app/gitea.log"
|
||||||
|
|
||||||
# Add ssh permission for user gitea
|
# Add ssh permission for gitea user
|
||||||
adduser gitea ssh.app
|
adduser $app ssh.app
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
ynh_script_progression --message="Protecting directory"
|
ynh_script_progression --message="Protecting directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user