diff options
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 5 |
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 |