* debian/postinst:

- handle ownerships of the reload profile flag more gracefully
This commit is contained in:
Dustin Kirkland 2011-06-12 23:22:53 -05:00
commit 4d200e3b1e
2 changed files with 3 additions and 3 deletions

3
debian/changelog vendored
View file

@ -1,6 +1,7 @@
byobu (4.11) unreleased; urgency=low byobu (4.11) unreleased; urgency=low
* UNRELEASED * debian/postinst:
- handle ownerships of the reload profile flag more gracefully
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 11 Jun 2011 09:42:07 -0400 -- Dustin Kirkland <kirkland@ubuntu.com> Sat, 11 Jun 2011 09:42:07 -0400

3
debian/postinst vendored
View file

@ -30,8 +30,7 @@ if [ -d "$DIR" ]; then
for d in "$DIR"/*; do for d in "$DIR"/*; do
[ -d "$d" ] || continue [ -d "$d" ] || continue
touch "$d/$PKG.reload-required" touch "$d/$PKG.reload-required"
u=$(echo "$d" | sed "s:^.*/S-::") chown --reference "$d" "$d/$PKG.reload-required" || true
chown $u "$d/$PKG.reload-required"
chmod 700 "$d/$PKG.reload-required" chmod 700 "$d/$PKG.reload-required"
done done
fi fi