Add gogs code for CI

This commit is contained in:
Josué Tille
2019-02-28 15:03:21 +01:00
parent d474571ed8
commit 4e078e9112
16 changed files with 613 additions and 194 deletions

View File

@ -35,7 +35,10 @@ test ! -e "$final_path" || ynh_die "This path already contains a folder"
#=================================================
# 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
ynh_restore