mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -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
|
byobu (2.63) unreleased; urgency=low
|
||||||
|
|
||||||
|
[ Dustin Kirkland ]
|
||||||
* etc/byobu/socketdir, usr/bin/byobu-config, usr/bin/byobu-janitor,
|
* etc/byobu/socketdir, usr/bin/byobu-config, usr/bin/byobu-janitor,
|
||||||
usr/bin/byobu-select-profile: increase portability to other distros,
|
usr/bin/byobu-select-profile: increase portability to other distros,
|
||||||
create socketdir conffile and SOCKETDIR variable for users who don't
|
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"
|
* usr/bin/byobu-config: change a sample reference from "bash" to "shell"
|
||||||
again for portability, LP: #535407
|
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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 09 Mar 2010 14:53:10 -0600
|
||||||
|
|
||||||
|
|
15
debian/postinst
vendored
15
debian/postinst
vendored
|
@ -18,11 +18,14 @@ fi
|
||||||
|
|
||||||
# Notify users that they should reload their profile
|
# Notify users that they should reload their profile
|
||||||
DIR="/var/run/screen"
|
DIR="/var/run/screen"
|
||||||
for d in $(ls "$DIR"); do
|
if [ -d "$DIR" ]; then
|
||||||
touch "$DIR/$d/$PKG.reload-required"
|
for d in "$DIR"/*; do
|
||||||
u=$(echo "$d" | sed "s:^S-::")
|
[ -d "$DIR/$d" ] || continue
|
||||||
chown $u "$DIR/$d/$PKG.reload-required"
|
touch "$DIR/$d/$PKG.reload-required"
|
||||||
chmod 700 "$DIR/$d/$PKG.reload-required"
|
u=$(echo "$d" | sed "s:^S-::")
|
||||||
done
|
chown $u "$DIR/$d/$PKG.reload-required"
|
||||||
|
chmod 700 "$DIR/$d/$PKG.reload-required"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue