Explorar o código

Update _common.sh

Mickael-Martin %!s(int64=6) %!d(string=hai) anos
pai
achega
3c82944f11
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      scripts/_common.sh

+ 2 - 2
scripts/_common.sh

@@ -16,7 +16,7 @@ ynh_delete_file_checksum () {
 #===================GET GUEST DEFAULT USER STATE==============
 #===================GET GUEST DEFAULT USER STATE==============
 #return 0 if enable, else 1
 #return 0 if enable, else 1
 get_state_guest_user(){
 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 ===================
 #================ DISABLE DEFAULT ZABBIX USER GUEST ===================
@@ -32,7 +32,7 @@ disable_guest_user(){
 #===================GET ADMIN DEFAULT USER STATE==============
 #===================GET ADMIN DEFAULT USER STATE==============
 #return 0 if enable, else 1
 #return 0 if enable, else 1
 get_state_admin_user(){
 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 ===================
 #================ DISABLE DEFAULT ADMIN USER ===================