From 6063938fa454b2d2e964a1e8d3899951d9d3c665 Mon Sep 17 00:00:00 2001 From: Mickael Date: Mon, 25 Feb 2019 15:52:29 +0100 Subject: [PATCH] change rules public --- scripts/install | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/scripts/install b/scripts/install index e166aef..fe36002 100644 --- a/scripts/install +++ b/scripts/install @@ -372,16 +372,6 @@ yunohost service add zabbix-agent -d "Management of Zabbix Agent" #yunohost service add NAME_INIT.D --log "/var/log/FILE.log" -#================================================= -# SETUP SSOWAT -#================================================= - -# Make app public if necessary -if [ "$is_public" -eq 1 ] -then - # unprotected_uris allows SSO credentials to be passed anyway. - ynh_app_setting_set "$app" unprotected_uris "/" -fi #================================================= # RELOAD NGINX AND PHP-FPM @@ -472,3 +462,24 @@ fi lastid=$(mysql -u"$db_user" -p"$db_pwd" "$db_name" -BN -e "SELECT max(id) from \`users_groups\`") lastid=$((lastid + 1 )) mysql -u"$db_user" -p"$db_pwd" "$db_name" -e "INSERT INTO \`users_groups\` (\`id\` , \`usrgrpid\`, \`userid\`) VALUES ($lastid ,9, 1);" + +#================================================= +# SETUP SSOWAT +#================================================= + +# Make app public if necessary +if [ "$is_public" -eq 1 ] +then + # unprotected_uris allows SSO credentials to be passed anyway. + ynh_app_setting_set "$app" unprotected_uris "/" +fi +#================================================= +# RELOAD NGINX AND PHP-FPM +#================================================= + +systemctl reload nginx +systemctl reload php7.0-fpm + +# Reload SSOwat config +yunohost app ssowatconf +