diff --git a/monica/rootfs/etc/cont-init.d/99-run.sh b/monica/rootfs/etc/cont-init.d/99-run.sh index 3f0038c401e..8c051ae7d72 100755 --- a/monica/rootfs/etc/cont-init.d/99-run.sh +++ b/monica/rootfs/etc/cont-init.d/99-run.sh @@ -26,6 +26,8 @@ case "$database" in export DB_DATABASE="/config/database.sqlite" export DB_CONNECTION=sqlite touch "$DB_DATABASE" + mkdir -p /var/www/html/database + ln -sf "$DB_DATABASE" /var/www/html/database/database.sqlite chown www-data:www-data "$DB_DATABASE" bashio::log.blue "Using $DB_DATABASE" ;;