Explorar el Código

disable default admin #2

Mickael-Martin hace 7 años
padre
commit
c5df35c9b0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scripts/install

+ 1 - 1
scripts/install

@@ -166,7 +166,7 @@ do
 done
 
 #disable default admin 
-lastid=$(mysql -u$db_user -p$db_pwd $db_name -e "mysql -BN -u root -p zabbix -e "SELECT max(id) from \`users_groups\`"")
+lastid=$(mysql -u$db_user -p$db_pwd $db_name -BN -e "SELECT max(id) from \`users_groups\`")
 lastid=$(($lastid + 1 ))
 mysql -u$db_user -p$db_pwd $db_name -e "INSERT INTO \`users_groups\` (\`id\` , \`usrgrpid\`, \`userid\`) VALUES ($lastid ,9, 1);"