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"