mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-12 02:21:28 +02:00
Update start.sh
This commit is contained in:
@@ -1,13 +1,5 @@
|
|||||||
#!/usr/bin/env bashio
|
#!/usr/bin/env bashio
|
||||||
|
|
||||||
#if [ -f /data/config.ini.php ]; then
|
|
||||||
#ln -s /data/config.ini.php /var/www/webtrees/data
|
|
||||||
#fi
|
|
||||||
|
|
||||||
if [ -f /data/webtrees.sqlite ]; then
|
|
||||||
ln -s /data/webtrees.sqlite /var/www/webtrees/data
|
|
||||||
fi
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
# BANNER #
|
# BANNER #
|
||||||
##########
|
##########
|
||||||
@@ -46,3 +38,20 @@ if bashio::supervisor.ping; then
|
|||||||
bashio::log.blue \
|
bashio::log.blue \
|
||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
###############
|
||||||
|
# PERSISTENCE #
|
||||||
|
###############
|
||||||
|
|
||||||
|
#if [ -f /data/config.ini.php ]; then
|
||||||
|
#ln -s /data/config.ini.php /var/www/webtrees/data
|
||||||
|
#fi
|
||||||
|
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user