mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Import ownsettings.php
https://github.com/alexbelgium/hassio-addons/issues/381
This commit is contained in:
@@ -73,6 +73,11 @@ fi
|
|||||||
echo "\$dbsettings['port'] = '${port}';"
|
echo "\$dbsettings['port'] = '${port}';"
|
||||||
} > /app/dbsettings.inc.php
|
} > /app/dbsettings.inc.php
|
||||||
|
|
||||||
|
# Import settings if existing
|
||||||
|
if [ -f /config/addons_config/ownsettings.php ]; then
|
||||||
|
bashio::log.warning "A file named ownsettings.php was found in /config/addons_config. It will be used instead of the addons options."
|
||||||
|
ln -s /config/addons_config/ownsettings.php /app/ownsettings.php
|
||||||
|
fi
|
||||||
|
|
||||||
# cat /app/dbsettings.inc.php
|
# cat /app/dbsettings.inc.php
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user