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:
parent
39905d8268
commit
755ec37db5
1 changed files with 2 additions and 2 deletions
|
@ -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 ===================
|
||||
|
|
Loading…
Add table
Reference in a new issue