mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
disable default admin #3
This commit is contained in:
parent
96dc6fc4fb
commit
f7f65d15e9
1 changed files with 2 additions and 2 deletions
|
@ -51,9 +51,9 @@ fi
|
|||
#=================================================
|
||||
# Disable default admin for security issue
|
||||
#=================================================
|
||||
haveDefaultAdminEnabled=$(mysql -BN -u root -psMquHFoRof zabbix -e "SELECT count(id) from \`users_groups\` where userid=1 and usrgrpid=9")
|
||||
haveDefaultAdminDisabled=$(mysql -BN -u root -psMquHFoRof zabbix -e "SELECT count(id) from \`users_groups\` where userid=1 and usrgrpid=9")
|
||||
|
||||
if [ "$haveDefaultAdminEnabled" -eq 1 ] ;then
|
||||
if [ "$haveDefaultAdminDisabled" -eq 0 ] ;then
|
||||
echo "Disable default admin"
|
||||
#disable default admin
|
||||
lastid=$(mysql -u$db_user -p$db_pwd $db_name -BN -e "SELECT max(id) from \`users_groups\`")
|
||||
|
|
Loading…
Add table
Reference in a new issue