mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
debian/postinst: handle situation where /var/run/screen does not
exist, LP: #535648
This commit is contained in:
parent
2ceb24a240
commit
31ecc85191
2 changed files with 13 additions and 6 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -1,5 +1,6 @@
|
|||
byobu (2.63) unreleased; urgency=low
|
||||
|
||||
[ Dustin Kirkland ]
|
||||
* etc/byobu/socketdir, usr/bin/byobu-config, usr/bin/byobu-janitor,
|
||||
usr/bin/byobu-select-profile: increase portability to other distros,
|
||||
create socketdir conffile and SOCKETDIR variable for users who don't
|
||||
|
@ -7,6 +8,9 @@ byobu (2.63) unreleased; urgency=low
|
|||
* usr/bin/byobu-config: change a sample reference from "bash" to "shell"
|
||||
again for portability, LP: #535407
|
||||
|
||||
[ Torsten Spindler ]
|
||||
* debian/postinst: handle situation where /var/run/screen does not
|
||||
exist, LP: #535648
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 09 Mar 2010 14:53:10 -0600
|
||||
|
||||
|
|
7
debian/postinst
vendored
7
debian/postinst
vendored
|
@ -18,11 +18,14 @@ fi
|
|||
|
||||
# Notify users that they should reload their profile
|
||||
DIR="/var/run/screen"
|
||||
for d in $(ls "$DIR"); do
|
||||
if [ -d "$DIR" ]; then
|
||||
for d in "$DIR"/*; do
|
||||
[ -d "$DIR/$d" ] || continue
|
||||
touch "$DIR/$d/$PKG.reload-required"
|
||||
u=$(echo "$d" | sed "s:^S-::")
|
||||
chown $u "$DIR/$d/$PKG.reload-required"
|
||||
chmod 700 "$DIR/$d/$PKG.reload-required"
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue