Skip to content

Commit

Permalink
d/landscape-common.postint, d/landscape-common.prerm: do not call
Browse files Browse the repository at this point in the history
update-motd when installing/removing landscape-sysinfo.wrapper
  • Loading branch information
Perfect5th authored Jan 15, 2024
1 parent 2044c7b commit e812505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions debian/landscape-common.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,13 @@ case "$1" in
if [ "$RET" = "Cache sysinfo in /etc/motd" ]; then
rm -f $PROFILE_LOCATION 2>/dev/null || true
ln -sf $WRAPPER $UPDATE_MOTD_LOCATION
update-motd 2>/dev/null || true
$WRAPPER >/dev/null 2>&1 || true
elif [ "$RET" = "Run sysinfo on every login" ]; then
rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true
update-motd 2>/dev/null || true
ln -sf $WRAPPER $PROFILE_LOCATION
$WRAPPER >/dev/null 2>&1 || true
else
rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true
update-motd 2>/dev/null || true
rm -f $PROFILE_LOCATION || true
fi

Expand Down
1 change: 0 additions & 1 deletion debian/landscape-common.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ set -e
case "$1" in
remove|upgrade|deconfigure)
rm -f /etc/update-motd.d/50-landscape-sysinfo 2>/dev/null || true
update-motd 2>/dev/null || true
rm -f /etc/profile.d/landscape-sysinfo.sh 2>/dev/null || true
;;

Expand Down

0 comments on commit e812505

Please sign in to comment.