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

@ -80,6 +80,13 @@ then
usermod -p '*' "$app"
fi
# Remove old authentification mecanisme, actually the registry in the database has been replaced by a config file
if [[ ! -e "$final_path/custom/conf/auth.d/ldap.conf" ]]
then
ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" <<< "DELETE FROM login_source WHERE name = 'Yunohost LDAP';"
mkdir -p "$final_path/custom/conf/auth.d"
fi
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
@ -103,6 +110,9 @@ config_nginx
# GENERIC FINALIZATION
#=================================================
# Unprotect root from SSO if public
set_access_settings
# Set permissions
set_permission