summaryrefslogtreecommitdiffstats
path: root/satellit_upgrader/updater.template.sh
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-28 09:57:21 +0100
committerSimon Rettberg2019-03-28 09:57:21 +0100
commit0c866dd8933971da0568958e7caa2693df37bd89 (patch)
tree491e477621be340137da6fb7f3de4e4be122625d /satellit_upgrader/updater.template.sh
parent[SSPS] slx-admin boot: Also log non-critical messages (diff)
downloadsetup-scripts-0c866dd8933971da0568958e7caa2693df37bd89.tar.gz
setup-scripts-0c866dd8933971da0568958e7caa2693df37bd89.tar.xz
setup-scripts-0c866dd8933971da0568958e7caa2693df37bd89.zip
[SSUS] Require manual --version spec
Diffstat (limited to 'satellit_upgrader/updater.template.sh')
-rw-r--r--satellit_upgrader/updater.template.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh
index bfc434c..478ce81 100644
--- a/satellit_upgrader/updater.template.sh
+++ b/satellit_upgrader/updater.template.sh
@@ -329,10 +329,7 @@ if [ -n "$TGZ_SLXADMIN" ]; then
FOOTER="$SLXADMIN_FOOTER"
[[ "$FOOTER" == %*% ]] && FOOTER=
if [ -z "$FOOTER" ]; then
- D=$(stat -c %Y "$0")
- [ -z "$D" ] && D=$(date +%s)
- D=$(date -d "@$D" "+%y-%m-%d %H:%M")
- FOOTER="Unknown $D"
+ FOOTER="Build $TARGET_WEBIF_VERSION"
fi
FOOTER="$OLDFOOTER [Update: ${FOOTER}]"
sed -i "s#^.*define.*CONFIG_FOOTER.*\$#define('CONFIG_FOOTER', '${FOOTER}');#" "${PATH_SLXADMIN}/config.php"