|
|
@@ -89,6 +89,7 @@ yunohost user create "$zabbix_username" --fullname "${zabbix_username//_}" --dom
|
|
|
ynh_add_config --template="zabbix-cli_default.toml" --destination="/usr/share/zabbix-cli/zabbix-cli.toml"
|
|
|
/usr/share/zabbix-cli/bin/zabbix-cli --config /usr/share/zabbix-cli/zabbix-cli.toml create_user $zabbix_username --firstname $zabbix_username --lastname $zabbix_username --passwd $zabbix_password --role superadmin --groups 7
|
|
|
ynh_add_config --template="zabbix-cli.toml" --destination="/usr/share/zabbix-cli/zabbix-cli.toml"
|
|
|
+ynh_secure_remove --file="/usr/share/zabbix-cli/.zabbix-cli_auth_token"
|
|
|
|
|
|
#sso integration activation
|
|
|
$mysqlconn -e "UPDATE \`config\` SET \`http_auth_enabled\` = '1', \`http_login_form\` = '1' WHERE \`config\`.\`configid\` = 1;"
|