mirror of
https://github.com/YunoHost-Apps/gogs_ynh.git
synced 2024-09-03 20:36:23 +02:00
Fix git authentication by ssh
This commit is contained in:
parent
36a8e2b30e
commit
6fd4fcc598
2 changed files with 8 additions and 2 deletions
|
@ -53,7 +53,10 @@ ynh_app_setting_set $app web_port $port
|
||||||
ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass"
|
ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass"
|
||||||
|
|
||||||
# Add users
|
# Add users
|
||||||
ynh_system_user_create $app
|
# We can't use the official helper because we need to set the shell for the login
|
||||||
|
test getent passwd "$app" &>/dev/null || \
|
||||||
|
useradd -d "$DATADIR" --system --user-group "$app" --shell /bin/bash || \
|
||||||
|
ynh_die "Unable to create $app system account"
|
||||||
|
|
||||||
# create needed directories
|
# create needed directories
|
||||||
create_dir
|
create_dir
|
||||||
|
|
|
@ -35,7 +35,10 @@ test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Add users
|
# Add users
|
||||||
ynh_system_user_create $app
|
# We can't use the official helper because we need to set the shell for the login
|
||||||
|
test getent passwd "$app" &>/dev/null || \
|
||||||
|
useradd -d "$DATADIR" --system --user-group "$app" --shell /bin/bash || \
|
||||||
|
ynh_die "Unable to create $app system account"
|
||||||
|
|
||||||
# Restore all files
|
# Restore all files
|
||||||
ynh_restore
|
ynh_restore
|
||||||
|
|
Loading…
Reference in a new issue