summaryrefslogtreecommitdiff
path: root/dist/install_nightly.sh
diff options
context:
space:
mode:
authorWerWolv <werwolv98@gmail.com>2022-04-13 23:18:58 +0200
committerGitHub <noreply@github.com>2022-04-13 23:18:58 +0200
commit4576fed01baac066a8550018a0922739cc2f8985 (patch)
tree6e4dbc2a83486f62bc839b047fe427d9c13577c7 /dist/install_nightly.sh
parentde435e22fb0f01df81b2781f38e5890dbbb728ba (diff)
downloaddecky-loader-4576fed01baac066a8550018a0922739cc2f8985.tar.gz
decky-loader-4576fed01baac066a8550018a0922739cc2f8985.zip
Properly delete old user plugin loader service on install
Diffstat (limited to 'dist/install_nightly.sh')
-rw-r--r--dist/install_nightly.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/install_nightly.sh b/dist/install_nightly.sh
index 2189bf2a..b48c833c 100644
--- a/dist/install_nightly.sh
+++ b/dist/install_nightly.sh
@@ -20,9 +20,14 @@ cp /tmp/plugin_loader/PluginLoader ${HOMEBREW_FOLDER}/services/PluginLoader
rm -rf /tmp/plugin_loader
chmod +x ${HOMEBREW_FOLDER}/services/PluginLoader
+systemctl --user stop plugin_loader 2> /dev/null
+systemctl --user disable plugin_loader 2> /dev/null
+rm -f /home/deck/.config/systemd/user/plugin_loader.service
+
systemctl stop plugin_loader 2> /dev/null
systemctl disable plugin_loader 2> /dev/null
rm -f /etc/systemd/system/plugin_loader.service
+
cat > /etc/systemd/system/plugin_loader.service <<- EOM
[Unit]
Description=SteamDeck Plugin Loader