test if /usr/share/screen-profiles/bin exists before linking it

This commit is contained in:
Dustin Kirkland 2009-03-06 20:21:29 -06:00
commit 441401ba8b

2
debian/postinst vendored
View file

@ -5,7 +5,7 @@ if [ "$1" = "configure" ]; then
# We have moved these helper scripts from /usr/share to /var/lib, but if the # We have moved these helper scripts from /usr/share to /var/lib, but if the
# user is upgrading from within an existing screen session depending on the old # user is upgrading from within an existing screen session depending on the old
# paths, we're going to break their status bar. # paths, we're going to break their status bar.
ln -sf /var/lib/screen-profiles /usr/share/screen-profiles/bin [ -d /usr/share/screen-profiles/bin ] || ln -sf /var/lib/screen-profiles /usr/share/screen-profiles/bin
fi fi
#DEBHELPER# #DEBHELPER#