|
|
@@ -57,16 +57,17 @@ fi
|
|
|
haveDefaultAdminDisabled=$(mysql -BN -u$db_user -p$db_pwd $db_name -BN -e "SELECT count(id) from \`users_groups\` where userid=1 and usrgrpid=9")
|
|
|
|
|
|
if [ "$haveDefaultAdminDisabled" -eq 1 ] ;then
|
|
|
- echo "Enable default admin"
|
|
|
+ ynh_print_info "Enable default admin"
|
|
|
#enable default admin temporaly
|
|
|
mysql -u$db_user -p$db_pwd $db_name -e "DELETE FROM users_groups where usrgrpid=9 and userid=1;"
|
|
|
else
|
|
|
- echo "default admin already enabled"
|
|
|
+ ynh_print_info "default admin already enabled"
|
|
|
fi
|
|
|
|
|
|
#=================================================
|
|
|
# Import Yunohost template
|
|
|
#=================================================
|
|
|
+ynh_print_info "Import Yunohost template"
|
|
|
#disable sso temporaly
|
|
|
ynh_app_setting_set $app unprotected_uris "/"
|
|
|
systemctl reload nginx
|
|
|
@@ -167,7 +168,7 @@ path_url=$(ynh_normalize_url_path $path_url)
|
|
|
#=================================================
|
|
|
# STANDARD UPGRADE STEPS
|
|
|
#=================================================
|
|
|
-
|
|
|
+ynh_print_info "Check if new zabbix version is available on repo"
|
|
|
ynh_package_update
|
|
|
|
|
|
zabbixServerInstalledVersion=$(apt-cache policy zabbix-server-mysql | grep -Po "Installed: \K(.*)")
|
|
|
@@ -228,7 +229,7 @@ fi
|
|
|
#=================================================
|
|
|
# RE-ENABLE SSOWAT
|
|
|
#=================================================
|
|
|
-
|
|
|
+ynh_print_info "re-enable SSOWAT"
|
|
|
# Make app public if necessary
|
|
|
if [ $is_public -eq 1 ]
|
|
|
then
|