From 1c5889f45724bccb338e8436e2c056679e506802 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 22 Oct 2021 21:01:32 +0200 Subject: [PATCH] Update end.sh --- webtrees/rootfs/end.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webtrees/rootfs/end.sh b/webtrees/rootfs/end.sh index 038a81b73..4fc3f4674 100644 --- a/webtrees/rootfs/end.sh +++ b/webtrees/rootfs/end.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bashio -DB_NAME=$(echo $DB_NAME | tr -d '"') +#DB_NAME=$(echo $DB_NAME | tr -d '"') -if [ ! -f "/data/$DB_NAME.sqlite" ]; then - mv "/var/www/webtrees/data/$DB_NAME.sqlite" /data || bashio::log.fatal "error : database /var/www/webtrees/data/$DB_NAME.sqlite not found" - ln -s "/data/$DB_NAME.sqlite" /var/www/webtrees/data - bashio::log.warning "No existing database found with the name selected, creating a new one" -fi +#if [ ! -f "/data/$DB_NAME.sqlite" ]; then +# mv "/var/www/webtrees/data/$DB_NAME.sqlite" /data || bashio::log.fatal "error : database /var/www/webtrees/data/$DB_NAME.sqlite not found" +# ln -s "/data/$DB_NAME.sqlite" /var/www/webtrees/data +# bashio::log.warning "No existing database found with the name selected, creating a new one" +#fi bashio::log.info "Starting apache, please wait then login with $WT_USER : $WT_PASS"