From 441401ba8bb0e74b351e1c9ef899e69c83b60de9 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 6 Mar 2009 20:21:29 -0600 Subject: [PATCH] test if /usr/share/screen-profiles/bin exists before linking it --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index fe4f7047..b029002b 100644 --- a/debian/postinst +++ b/debian/postinst @@ -5,7 +5,7 @@ if [ "$1" = "configure" ]; then # 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 # 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 #DEBHELPER#