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

disable default admin #2

This commit is contained in:
Mickael-Martin 2019-01-15 13:46:21 +01:00
parent 30ae26c3f8
commit c5df35c9b0

View file

@ -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);"