From a99142c603ba6b9fbc887dc50529b854e58e391c Mon Sep 17 00:00:00 2001 From: Fred Clausen <43556888+fredclausen@users.noreply.github.com> Date: Thu, 26 Oct 2023 16:46:16 -0600 Subject: [PATCH] fix global url replacement --- rootfs/etc/s6-overlay/scripts/03-settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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