summaryrefslogtreecommitdiff
path: root/cli/install_prerelease.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cli/install_prerelease.sh')
-rw-r--r--cli/install_prerelease.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/install_prerelease.sh b/cli/install_prerelease.sh
index 9c2c2ab..1f5d2f2 100644
--- a/cli/install_prerelease.sh
+++ b/cli/install_prerelease.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