Run as root user

This commit is contained in:
Micke Nordin 2025-01-20 08:45:55 +01:00 committed by Lars Delhage
parent 9425d56716
commit c9bdb766eb
Signed by untrusted user: lasse
GPG key ID: 6B250FE35CC876D1

View file

@ -13,7 +13,7 @@ dexec="docker exec ${container}"
password=$(${dexec} env | grep MYSQL_ROOT_PASSWORD | awk -F '=' '{print $2}')
mysql="${dexec} mysql -p${password}"
mysql="${dexec} mysql -p${password} -u root"
if [[ "$(${mysql} -NB -e 'select exists(select * from information_schema.TABLES where TABLE_SCHEMA = "nextcloud" and TABLE_NAME = "oc_global_scale_users")')" == "1" ]]
then