From fdd9c6a390538ce3f0eb111f05a76a4357d032fb Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Mon, 28 Aug 2023 11:10:36 +0200 Subject: [PATCH] Handle the same on prerelease installer --- dist/install_prerelease.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dist/install_prerelease.sh b/dist/install_prerelease.sh index d38f0d5b2..00f990dc8 100644 --- a/dist/install_prerelease.sh +++ b/dist/install_prerelease.sh @@ -21,6 +21,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 && setenforce -t bin_t ${HOMEBREW_FOLDER}/services/PluginLoader + echo $VERSION > ${HOMEBREW_FOLDER}/services/.loader.version systemctl --user stop plugin_loader 2> /dev/null