Skip to content

Commit

Permalink
Skip restorecon if it cannot be found
Browse files Browse the repository at this point in the history
https://bugs.freedesktop.org/show_bug.cgi?id=101557

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
whot committed Jun 22, 2017
1 parent 8728b5b commit ec27aa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libinput-restore-selinux-context.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
libdir="$1"
sofile=$(basename "$2")

echo "Restoring SELinux context on $MESON_INSTALL_DESTDIR_PREFIX/$libdir/$sofile"
restorecon "$MESON_INSTALL_DESTDIR_PREFIX/$libdir/$sofile"
if command -v restorecon >/dev/null; then
echo "Restoring SELinux context on $MESON_INSTALL_DESTDIR_PREFIX/$libdir/$sofile"
restorecon "$MESON_INSTALL_DESTDIR_PREFIX/$libdir/$sofile"
fi

0 comments on commit ec27aa3

Please sign in to comment.