mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
disable default admin
This commit is contained in:
parent
00771f7c58
commit
30ae26c3f8
1 changed files with 5 additions and 0 deletions
|
@ -165,6 +165,11 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
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=$(($lastid + 1 ))
|
||||||
|
mysql -u$db_user -p$db_pwd $db_name -e "INSERT INTO \`users_groups\` (\`id\` , \`usrgrpid\`, \`userid\`) VALUES ($lastid ,9, 1);"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue