summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/vyatta-cfg-system.postinst.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index cf9eecdb..caa435c1 100755
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -104,8 +104,9 @@ if [ "$sysconfdir" != "/etc" ]; then
# Set file capabilities
sed -r -e '/^#/d' -e '/^[[:blank:]]*$/d' < $sysconfdir/filecaps | \
while read capability path; do
- touch -c $path
- setcap $capability $path
+ if [ -e $path ]; then
+ setcap $capability $path
+ fi
done
# Install pam_cap config