mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 12:24:04 +02:00
Update start.sh
This commit is contained in:
@@ -39,15 +39,11 @@ if bashio::supervisor.ping; then
|
|||||||
'-----------------------------------------------------------'
|
'-----------------------------------------------------------'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###############
|
####################
|
||||||
# PERSISTENCE #
|
# GLOBAL VARIABLES #
|
||||||
###############
|
####################
|
||||||
|
|
||||||
#DB_NAME=$(bashio::config 'DB_NAME')
|
export BASE_URL=$BASE_URL:$(bashio::addon.port 80)
|
||||||
#if [ -f "/data/$DB_NAME.sqlite" ]; then
|
|
||||||
#bashio::log.info "Using existing database $DB_NAME.sqlite"
|
|
||||||
#ln -s "/data/$DB_NAME.sqlite" /var/www/webtrees/data
|
|
||||||
#fi
|
|
||||||
|
|
||||||
################
|
################
|
||||||
# SSL CONFIG #
|
# SSL CONFIG #
|
||||||
@@ -69,8 +65,14 @@ if bashio::config.true 'ssl'; then
|
|||||||
sed -i "s|/certs/webtrees.key|/ssl/$KEYFILE|g" /etc/apache2/sites-available/webtrees-ssl.conf
|
sed -i "s|/certs/webtrees.key|/ssl/$KEYFILE|g" /etc/apache2/sites-available/webtrees-ssl.conf
|
||||||
|
|
||||||
#Send env variables
|
#Send env variables
|
||||||
#export HTTPS_REDIRECT=true
|
|
||||||
#export SSL_REDIRECT=true
|
|
||||||
export HTTPS=true
|
export HTTPS=true
|
||||||
export SSL=true
|
export SSL=true
|
||||||
|
export BASE_URL=$BASE_URL:$(bashio::addon.port 443)
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#########
|
||||||
|
# INFOS #
|
||||||
|
#########
|
||||||
|
|
||||||
|
bashio::log.info "Defined base url : $BASE_URL"
|
||||||
|
|||||||
Reference in New Issue
Block a user