Browse Source

delete credentials testing

Mickael-Martin 7 năm trước cách đây
mục cha
commit
a032a827e4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/upgrade

+ 1 - 1
scripts/upgrade

@@ -51,7 +51,7 @@ fi
 #=================================================
 # Disable default admin for security issue
 #=================================================
-haveDefaultAdminDisabled=$(mysql -BN -u root -psMquHFoRof zabbix -e "SELECT count(id) from \`users_groups\` where userid=1 and usrgrpid=9")
+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 0 ] ;then
     echo "Disable default admin"