diff options
| author | Stephen Hemminger <shemming@brocade.com> | 2013-04-24 14:16:56 -0700 | 
|---|---|---|
| committer | Stephen Hemminger <shemming@brocade.com> | 2013-04-24 14:16:56 -0700 | 
| commit | aa4231adc86b5dedd0434bf8e255f269838b58b9 (patch) | |
| tree | 324e7dcb9c19e49565ab55d7eae586d1a653cb6c | |
| parent | d9305e7c7f7d7df22098ff4682e0f27dcf37c53e (diff) | |
| download | vyatta-cfg-system-aa4231adc86b5dedd0434bf8e255f269838b58b9.tar.gz vyatta-cfg-system-aa4231adc86b5dedd0434bf8e255f269838b58b9.zip | |
don't error if file does not exist when doing setcap
The install script sets capabilities on some files
These files may not exist if a package is not part of the ISO,
therefore it is ok.
| -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 | 
