Run as root user

This commit is contained in:
Micke Nordin 2025-01-20 08:45:55 +01:00
parent 1868c2a0b7
commit 8027abaa82
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

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