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

Update _common.sh

This commit is contained in:
Mickael-Martin 2019-03-01 11:42:18 +01:00
parent 39905d8268
commit 755ec37db5

View file

@ -16,7 +16,7 @@ ynh_delete_file_checksum () {
#===================GET GUEST DEFAULT USER STATE==============
#return 0 if enable, else 1
get_state_guest_user(){
return $($mysqlconn -BN -e "SELECT count(id) from \`users_groups\` where userid=2 and usrgrpid=9")
$mysqlconn -BN -e "SELECT count(id) from \`users_groups\` where userid=2 and usrgrpid=9"
}
#================ DISABLE DEFAULT ZABBIX USER GUEST ===================
@ -32,7 +32,7 @@ disable_guest_user(){
#===================GET ADMIN DEFAULT USER STATE==============
#return 0 if enable, else 1
get_state_admin_user(){
return $mysqlconn -BN -e "SELECT count(id) from \`users_groups\` where userid=1 and usrgrpid=9"
$mysqlconn -BN -e "SELECT count(id) from \`users_groups\` where userid=1 and usrgrpid=9"
}
#================ DISABLE DEFAULT ADMIN USER ===================