diff options
author | Simon Rettberg | 2020-12-08 14:26:37 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-12-08 14:26:37 +0100 |
commit | 4b8fbf9c844c26500f1329883ce00e0ef5c93f6e (patch) | |
tree | 691cd0a4e0ed854b737e09f3b90935b5ddc28e9c /core/modules/init-bwlp | |
parent | [init-bwlp] Fix path (diff) | |
download | mltk-4b8fbf9c844c26500f1329883ce00e0ef5c93f6e.tar.gz mltk-4b8fbf9c844c26500f1329883ce00e0ef5c93f6e.tar.xz mltk-4b8fbf9c844c26500f1329883ce00e0ef5c93f6e.zip |
[init-bwlp] HOSTS ETC
Diffstat (limited to 'core/modules/init-bwlp')
-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 |