summaryrefslogtreecommitdiffstats
path: root/libexec/container/update
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-16 05:18:53 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-16 05:19:15 +0000
commit8a6ccf00689502d05aac0661c3ec7bd424d35c9c (patch)
treebbed8fc1d36c630e0df6c27b069ea1ec0939e7d0 /libexec/container/update
parentMaking container update command work entirely non-interactive. (diff)
downloadcompute-tools-8a6ccf00689502d05aac0661c3ec7bd424d35c9c.tar.xz
compute-tools-8a6ccf00689502d05aac0661c3ec7bd424d35c9c.zip
Updating notifications in container update command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlibexec/container/update4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/container/update b/libexec/container/update
index 6d8ac20..7eed2c3 100755
--- a/libexec/container/update
+++ b/libexec/container/update
@@ -152,7 +152,7 @@ do
HOST="$(hostname -f 2> /dev/null || hostname)"
# logfile
- echo "${DATE} ${HOST} ${CONTAINER_USER} ${NAME} ${UPDATES} upgraded: ${PACKAGES}" >> "/var/log/${SOFTWARE}/${PROGRAM}.log"
+ echo "${DATE} ${HOST} ${CONTAINER_USER} ${NAME} ${UPDATES} update(s): ${PACKAGES}" >> "/var/log/${SOFTWARE}/${PROGRAM}.log"
# irc
if [ -e /usr/bin/irk ]
@@ -169,7 +169,7 @@ do
then
for TARGET in ${IRK_TARGETS}
do
- irk "${TARGET}" "\x0300${CONTAINER_USER}\x03@\x0312${HOST}:\x03 \x0303${NAME}\x03 \x0307${UPDATES} upgraded\x03: ${PACKAGES}"
+ irk "${TARGET}" "\x0300${CONTAINER_USER}\x03@\x0312${HOST}:\x03 \x0303${NAME}\x03 \x0307${UPDATES} update(s)\x03: ${PACKAGES}"
done
fi
fi