debian/postinst:

This commit is contained in:
Dustin Kirkland 2011-09-22 17:54:32 -05:00
commit 526fe4336f
2 changed files with 1 additions and 14 deletions

2
debian/changelog vendored
View file

@ -5,9 +5,9 @@ byobu (4.35) unreleased; urgency=low
previous fix just enabled it everywhere
* debian/postinst, usr/bin/byobu-janitor:
- smooth upgrades from older byobu (<= 4.0)
- automatically reload default byobu launched sessions on upgrade
* usr/lib/byobu/reboot_required:
- fix path
* debian/postinst:
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 21 Sep 2011 18:49:00 -0500

13
debian/postinst vendored
View file

@ -43,19 +43,6 @@ if [ -d "$SOCKETDIR" ]; then
done
fi
# Reload byobu sessions
for p in /var/run/screen/S-*/*.$PKG; do
pid=$(echo "$p" | sed -e "s:.*/::" -e "s:\..*::")
if [ -p "$p" ] && (ps -o cmd "$pid" | grep -qs "^SCREEN -S $PKG -c "); then
u=$(stat -c %U "$p")
h=$(getent passwd "$u" | awk -F: '{print $6}')
if [ -f "$h/.$PKG/profile" ]; then
s=$(basename "$p")
su -l "$u" -c "screen -S $s -X at 0 source '$h/.$PKG/profile'" >/dev/null 2>&1 || true
fi
fi
done
#DEBHELPER#
# vi: syntax=sh ts=4 noexpandtab