From 4b8fbf9c844c26500f1329883ce00e0ef5c93f6e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 8 Dec 2020 14:26:37 +0100 Subject: [init-bwlp] HOSTS ETC --- .../init-bwlp/data/inc/pre-switchroot.d/50-install-certificates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/modules/init-bwlp') 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 -- cgit v1.2.3-55-g7522