1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

change rules public

This commit is contained in:
Mickael 2019-02-25 15:52:29 +01:00
parent be5a004223
commit 6063938fa4

View file

@ -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