mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 23:04:09 +02:00
Update start.sh
This commit is contained in:
@@ -43,15 +43,8 @@ fi
|
|||||||
# PERSISTENCE #
|
# PERSISTENCE #
|
||||||
###############
|
###############
|
||||||
|
|
||||||
#if [ -f /data/config.ini.php ]; then
|
DB_NAME=$(bashio::config 'DB_NAME')
|
||||||
#ln -s /data/config.ini.php /var/www/webtrees/data
|
if [ -f "/data/$DB_NAME.sqlite" ]; then
|
||||||
#fi
|
bashio:log.info "Using existing database $DB_NAME.sqlite"
|
||||||
|
ln -s "/data/$DB_NAME.sqlite" /var/www/webtrees/data
|
||||||
bashio:log.info ""
|
|
||||||
|
|
||||||
if [ -f /data/webtrees.sqlite ]; then
|
|
||||||
bashio:log.info "Using existing database"
|
|
||||||
ln -s /data/webtrees.sqlite /var/www/webtrees/data
|
|
||||||
else
|
|
||||||
bashio:log.warning "No existing database found with the name selected, creating a new one"
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user