From 05acab265ff409f728b3d0f05c32482bfb99488f Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 6 Feb 2020 17:12:08 +0100 Subject: [SPUS] patch sat version in /etc/motd --- satellit_upgrader/updater.template.sh | 3 +++ 1 file changed, 3 insertions(+) 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 "" -- cgit v1.2.3-55-g7522