We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f40bb2 commit 3d18aa9Copy full SHA for 3d18aa9
install.sh
@@ -73,6 +73,14 @@
73
# Remove the temporary directory.
74
rm -rf "$TEMPDIR"
75
76
+ # If SELinux is installed, apply the default security context to the binary.
77
+ # shellcheck disable=SC2024
78
+ if command -v restorecon 2> /dev/null; then
79
+ restorecon "$DESTINATION" 2> /dev/null ||
80
+ sudo restorecon "$DESTINATION" < /dev/tty ||
81
+ fail 'Failed to set SELinux attributes on the binary.'
82
+ fi
83
+
84
# Let the user know if the installation was successful.
85
"$DESTINATION" --version || fail 'There was an error installing the binary.'
86
)
0 commit comments