summaryrefslogtreecommitdiffstats
path: root/satellit_upgrader
diff options
context:
space:
mode:
authorSimon Rettberg2020-02-24 12:56:34 +0100
committerSimon Rettberg2020-02-24 12:56:34 +0100
commit1808be99dacdc983f1ebaf10f36558e9fb0133d9 (patch)
tree3640d7d9a2108d4249dc69d3afd27bd302134709 /satellit_upgrader
parent[SSPS/SSUS] Copy slxadmin-init script for later use (diff)
downloadsetup-scripts-1808be99dacdc983f1ebaf10f36558e9fb0133d9.tar.gz
setup-scripts-1808be99dacdc983f1ebaf10f36558e9fb0133d9.tar.xz
setup-scripts-1808be99dacdc983f1ebaf10f36558e9fb0133d9.zip
[SSUS] Make motd patch regex more flexible and adapt format
Diffstat (limited to 'satellit_upgrader')
-rw-r--r--satellit_upgrader/updater.template.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh
index 1756bc6..7a832ca 100644
--- a/satellit_upgrader/updater.template.sh
+++ b/satellit_upgrader/updater.template.sh
@@ -860,7 +860,7 @@ for i in /opt/openslx/restore.d/*/init.sh; do
done
# Patch the update version in /etc/motd
-sed -r -i 's/(bwLehrpool\sSatelliten-Server,\sVersion\s[WS]Sem20[12][0-9]\s[1-9]\.[0-9])(\s\[Update\s[0-9]\.[0-9][a-z]?\])?/\1 \[Update '"${SLXADMIN_FOOTER//v/}"'\]/g' /etc/motd
+sed -r -i 's/(bwLehrpool Satelliten-Server, Version[^[(*]*)\s*([[(]Update.*[])]\s*)?/\1\[Update: '"${SLXADMIN_FOOTER}"'] /g' /etc/motd
echo ""
echo "Update complete. This update needs a reboot to be working as intended. Please do so now."