Mickael 6 лет назад
Родитель
Сommit
6063938fa4
1 измененных файлов с 21 добавлено и 10 удалено
  1. 21 10
      scripts/install

+ 21 - 10
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
+