summaryrefslogtreecommitdiffstats
path: root/debian/dpkg.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/dpkg.postinst')
-rw-r--r--debian/dpkg.postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst
index 113c8d5..8d9f606 100644
--- a/debian/dpkg.postinst
+++ b/debian/dpkg.postinst
@@ -59,7 +59,7 @@ setup_aliases()
# Add a backward compatibility symlink alias for s-s-d, which is now
# installed in its canonical location.
- if [ ! -f "$DPKG_ROOT/sbin/$prog" ]; then
+ if [ ! -f "$DPKG_ROOT/sbin/$prog" ] && [ -d "$DPKG_ROOT/sbin" ]; then
ln -s "/usr/sbin/$prog" "$DPKG_ROOT/sbin/$prog"
fi
}