debian/postinst: handle situation where /var/run/screen does not

exist, LP: #535648
This commit is contained in:
Dustin Kirkland 2010-03-10 18:23:16 -06:00
commit 31ecc85191
2 changed files with 13 additions and 6 deletions

4
debian/changelog vendored
View file

@ -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

5
debian/postinst vendored
View file

@ -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
fi
#DEBHELPER#