Skip to content

Commit

Permalink
fix global url replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Oct 26, 2023
1 parent ea0e565 commit a99142c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/03-settings
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a99142c

Please sign in to comment.