mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Update run.sh
This commit is contained in:
@@ -70,6 +70,14 @@ ln -s /share/webtrees/$VOL $WEBTREES_HOME
|
|||||||
done
|
done
|
||||||
chown -R www-data:www-data /share/webtrees
|
chown -R www-data:www-data /share/webtrees
|
||||||
|
|
||||||
|
# Correct base url if needed
|
||||||
|
if [ -f /share/webtrees/data/config.ini.php ]; then
|
||||||
|
echo "Aligning base_url addon config"
|
||||||
|
LINE=$(sed -n '/base_url/=' /share/webtrees/data/config.ini.php)
|
||||||
|
sed -i "$LINE a "base_url=\"$BASE_URL\"" /share/webtrees/data/config.ini.php
|
||||||
|
sed -i "$LINEd" /share/webtrees/data/config.ini.php
|
||||||
|
fi
|
||||||
|
|
||||||
# Execute main script
|
# Execute main script
|
||||||
cd /
|
cd /
|
||||||
./docker-entrypoint.sh >/dev/null
|
./docker-entrypoint.sh >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user