cloudron-support: suppress mysql message
This commit is contained in:
@@ -41,7 +41,7 @@ function warn() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fail() {
|
function fail() {
|
||||||
echo -e "[${RED}FAIL${DONE}]\t${1}"
|
echo -e "[${RED}FAIL${DONE}]\t${1}" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
function enable_remote_access() {
|
function enable_remote_access() {
|
||||||
@@ -94,7 +94,7 @@ function check_box() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function owner_login() {
|
function owner_login() {
|
||||||
check_host_mysql
|
check_host_mysql >/dev/null
|
||||||
|
|
||||||
local -r owner_username=$(mysql -NB -uroot -ppassword -e "SELECT username FROM box.users WHERE role='owner' AND username IS NOT NULL AND active=1 ORDER BY creationTime LIMIT 1" 2>/dev/null)
|
local -r owner_username=$(mysql -NB -uroot -ppassword -e "SELECT username FROM box.users WHERE role='owner' AND username IS NOT NULL AND active=1 ORDER BY creationTime LIMIT 1" 2>/dev/null)
|
||||||
local -r owner_password=$(pwgen -1s 12)
|
local -r owner_password=$(pwgen -1s 12)
|
||||||
|
|||||||
Reference in New Issue
Block a user