diff --git a/rootfs/etc/s6-overlay/scripts/03-settings b/rootfs/etc/s6-overlay/scripts/03-settings index 18f6e64..d6bd804 100755 --- a/rootfs/etc/s6-overlay/scripts/03-settings +++ b/rootfs/etc/s6-overlay/scripts/03-settings @@ -205,7 +205,7 @@ if chk_enabled "${FAM_ENABLE_ACARS}"; then sed -i "/${search}/c\\${replace}" /var/www/flightairmap/htdocs/require/settings.php fi -if chk_enabled "${FAM_GLOBAL_URL}"; then +if [[ -n "${FAM_GLOBAL_URL}" ]]; then search="\$globalURL = '" replace="\$globalURL = '${FAM_GLOBAL_URL}';" sed -i "/${search}/c\\${replace}" /var/www/flightairmap/htdocs/require/settings.php