summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Rodolfi <marco.rodolfi@tuta.io>2023-08-28 12:32:45 +0200
committerGitHub <noreply@github.com>2023-08-28 12:32:45 +0200
commita0a35127877ed5fcc16c525032993b6303bb438c (patch)
tree67d69263911fe5d0f18545306fda55f827b0d716
parent8b18260b2719bf0416348019cf062d5a331144d1 (diff)
downloaddecky-installer-a0a35127877ed5fcc16c525032993b6303bb438c.tar.gz
decky-installer-a0a35127877ed5fcc16c525032993b6303bb438c.zip
Same for prerelease
-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