mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
debian/postinst:
This commit is contained in:
parent
b64065fc50
commit
526fe4336f
2 changed files with 1 additions and 14 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -5,9 +5,9 @@ byobu (4.35) unreleased; urgency=low
|
||||||
previous fix just enabled it everywhere
|
previous fix just enabled it everywhere
|
||||||
* debian/postinst, usr/bin/byobu-janitor:
|
* debian/postinst, usr/bin/byobu-janitor:
|
||||||
- smooth upgrades from older byobu (<= 4.0)
|
- smooth upgrades from older byobu (<= 4.0)
|
||||||
- automatically reload default byobu launched sessions on upgrade
|
|
||||||
* usr/lib/byobu/reboot_required:
|
* usr/lib/byobu/reboot_required:
|
||||||
- fix path
|
- fix path
|
||||||
|
* debian/postinst:
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 21 Sep 2011 18:49:00 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 21 Sep 2011 18:49:00 -0500
|
||||||
|
|
||||||
|
|
13
debian/postinst
vendored
13
debian/postinst
vendored
|
@ -43,19 +43,6 @@ if [ -d "$SOCKETDIR" ]; then
|
||||||
done
|
done
|
||||||
fi
|
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#
|
#DEBHELPER#
|
||||||
|
|
||||||
# vi: syntax=sh ts=4 noexpandtab
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue