From f1f2c19e77b5a12216723747f283f58bacead4c2 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 27 Jan 2022 06:11:36 +0100 Subject: [PATCH] Update 99-run.sh --- photoprism/rootfs/etc/cont-init.d/99-run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/photoprism/rootfs/etc/cont-init.d/99-run.sh b/photoprism/rootfs/etc/cont-init.d/99-run.sh index 58fd551f1..23a16de28 100644 --- a/photoprism/rootfs/etc/cont-init.d/99-run.sh +++ b/photoprism/rootfs/etc/cont-init.d/99-run.sh @@ -40,6 +40,8 @@ mariadb_addon) bashio::log.warning "Webtrees is using the Maria DB addon" bashio::log.warning "Please ensure this is included in your backups" bashio::log.warning "Uninstalling the MariaDB addon will remove any data" + + mysql -uuser -p -e"CREATE DATABASE IF NOT EXISTS $PHOTOPRISM_DATABASE_NAME; CHARACTER SET = 'utf8mb4'; COLLATE = 'utf8mb4_unicode_ci'" || true ;; esac