From 40d12075f714e5c60e16f4b3983f82a60c15ded3 Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Mon, 28 Aug 2023 12:33:12 +0200 Subject: And for release --- cli/install_release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/install_release.sh b/cli/install_release.sh index ba1a82f..be5c55d 100644 --- a/cli/install_release.sh +++ b/cli/install_release.sh @@ -36,6 +36,10 @@ DOWNLOADURL=$(jq -r '.assets[].browser_download_url | select(endswith("PluginLoa printf "Installing version %s...\n" "${VERSION}" curl -L $DOWNLOADURL --output ${HOMEBREW_FOLDER}/services/PluginLoader chmod +x ${HOMEBREW_FOLDER}/services/PluginLoader + +echo "Check for SELinux presence and if it is present, set the correct permission on the binary file..." +hash getenforce 2>/dev/null && getenforce | grep "Enforcing" >/dev/null && chcon -t bin_t ${HOMEBREW_FOLDER}/services/PluginLoader + echo $VERSION > ${HOMEBREW_FOLDER}/services/.loader.version systemctl --user stop plugin_loader 2> /dev/null -- cgit v1.2.3