mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 06:14:07 +02:00
Update end.sh
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env bashio
|
#!/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
|
#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"
|
# 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
|
# 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"
|
# bashio::log.warning "No existing database found with the name selected, creating a new one"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
bashio::log.info "Starting apache, please wait then login with $WT_USER : $WT_PASS"
|
bashio::log.info "Starting apache, please wait then login with $WT_USER : $WT_PASS"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user