homeserver/roles/mgrote.motd/templates/90-updates-mgrote
mg 8dcd648f0b header eingebaut (#149)
header eingebaut

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#149
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-07-10 12:51:41 +02:00

5 lines
175 B
Bash

#!/bin/sh
{{ file_header | default () }}
stamp="/var/lib/update-notifier/updates-available"
([ ! -r "$stamp" ] || [ -n "$(awk '/^0/{print $1;}' "$stamp")" ]) || cat "$stamp"