diff options
-rw-r--r-- | core/modules/init-bwlp/data/inc/pre-switchroot.d/50-install-certificates | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/init-bwlp/data/inc/pre-switchroot.d/50-install-certificates b/core/modules/init-bwlp/data/inc/pre-switchroot.d/50-install-certificates index 3a6eea8d..1c7184e5 100644 --- a/core/modules/init-bwlp/data/inc/pre-switchroot.d/50-install-certificates +++ b/core/modules/init-bwlp/data/inc/pre-switchroot.d/50-install-certificates @@ -18,8 +18,8 @@ if [ -d "${FUTURE_ROOT}/opt/openslx/ssl" ] && ! rmdir "${FUTURE_ROOT}/opt/opensl find "${FUTURE_ROOT}/opt/openslx/ssl" -type l -delete # Add entry to /etc/hosts for boot server (satellite server) # Change all the URLs in config to use SSL - if [ -n "$SLX_REMOTE_SSL" ] && ! grep -qF 'satellite.bwlehrpool' "/etc/hosts"; then - echo "$SLX_REMOTE_SSL satellite.bwlehrpool" >> "/etc/hosts" + if [ -n "$SLX_REMOTE_SSL" ] && ! grep -qF 'satellite.bwlehrpool' "${FUTURE_ROOT}/etc/hosts"; then + echo "$SLX_REMOTE_SSL satellite.bwlehrpool" >> "${FUTURE_ROOT}/etc/hosts" sed -i "s,http://${SLX_REMOTE_SSL}/,https://satellite.bwlehrpool/," "${CONFIG}" fi fi |