summaryrefslogtreecommitdiffstats
path: root/satellit_upgrader
diff options
context:
space:
mode:
authorJonathan Bauer2020-02-06 17:12:08 +0100
committerJonathan Bauer2020-02-06 17:12:08 +0100
commit05acab265ff409f728b3d0f05c32482bfb99488f (patch)
treee8b99bf18f6d8eeceef3875c77571b5b8f86f1f9 /satellit_upgrader
parent[SPSS] add deps for dnbd3-server.service (diff)
downloadsetup-scripts-05acab265ff409f728b3d0f05c32482bfb99488f.tar.gz
setup-scripts-05acab265ff409f728b3d0f05c32482bfb99488f.tar.xz
setup-scripts-05acab265ff409f728b3d0f05c32482bfb99488f.zip
[SPUS] patch sat version in /etc/motd
Diffstat (limited to 'satellit_upgrader')
-rw-r--r--satellit_upgrader/updater.template.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh
index 433a4a3..fa5e883 100644
--- a/satellit_upgrader/updater.template.sh
+++ b/satellit_upgrader/updater.template.sh
@@ -847,6 +847,9 @@ for service in "${!restart[@]}"; do
restart_service "$service"
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
+
echo ""
echo "Update complete. This update needs a reboot to be working as intended. Please do so now."
echo ""