diff options
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/tmpfiles.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/tmpfiles.sh.in b/sh/tmpfiles.sh.in index 85385453..42a36392 100755 --- a/sh/tmpfiles.sh.in +++ b/sh/tmpfiles.sh.in @@ -45,10 +45,10 @@ relabel() { for path in ${paths}; do if [ -e "$path" ]; then + [ -x /sbin/restorecon ] && dryrun_or_real restorecon $CHOPTS "$path" [ $uid != '-' ] && dryrun_or_real chown $CHOPTS "$uid" "$path" [ $gid != '-' ] && dryrun_or_real chgrp $CHOPTS "$gid" "$path" [ $mode != '-' ] && dryrun_or_real chmod $CHOPTS "$mode" "$path" - [ -x /sbin/restorecon ] && dryrun_or_real restorecon $CHOPTS "$path" fi done } |