diff --git a/photoprism/rootfs/etc/cont-init.d/99-run.sh b/photoprism/rootfs/etc/cont-init.d/99-run.sh index 34326712c..f2ecf0f70 100644 --- a/photoprism/rootfs/etc/cont-init.d/99-run.sh +++ b/photoprism/rootfs/etc/cont-init.d/99-run.sh @@ -41,7 +41,7 @@ mariadb_addon) bashio::log.warning "Please ensure this is included in your backups" bashio::log.warning "Uninstalling the MariaDB addon will remove any data" - mysql -h $(bashio::services 'mysql' 'host') -P $(bashio::services 'mysql' 'port') -u $PHOTOPRISM_DATABASE_USER -p $PHOTOPRISM_DATABASE_PASSWORD -e"CREATE DATABASE IF NOT EXISTS $PHOTOPRISM_DATABASE_NAME; CHARACTER SET = 'utf8mb4'; COLLATE = 'utf8mb4_unicode_ci'" || true + mysql --host=$(bashio::services 'mysql' 'host') --port=$(bashio::services 'mysql' 'port') --user=$PHOTOPRISM_DATABASE_USER --password=$PHOTOPRISM_DATABASE_PASSWORD -e"CREATE DATABASE IF NOT EXISTS $PHOTOPRISM_DATABASE_NAME; CHARACTER SET = 'utf8mb4'; COLLATE = 'utf8mb4_unicode_ci'" || true ;; esac