mirror of
https://github.com/YunoHost-Apps/zabbix_ynh.git
synced 2024-09-03 20:36:14 +02:00
Update upgrade
This commit is contained in:
parent
6f6fb58a92
commit
22d8f452aa
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
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")
|
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
|
if [ "$haveDefaultAdminDisabled" -eq 1 ] ;then
|
||||||
echo "Enable default admin"
|
echo "Enable default admin"
|
||||||
#enable default admin temporaly
|
#enable default admin temporaly
|
||||||
mysql -u$db_user -p$db_pwd $db_name -e "DELETE FROM users_groups where usrgrpid=9 and userid=1;"
|
mysql -u$db_user -p$db_pwd $db_name -e "DELETE FROM users_groups where usrgrpid=9 and userid=1;"
|
||||||
|
|
Loading…
Add table
Reference in a new issue