diff options
| author | WerWolv <werwolv98@gmail.com> | 2022-04-21 17:44:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-21 17:44:12 +0200 |
| commit | 7aa4e9106a57b95014bc93a01adf6085f4a5329f (patch) | |
| tree | 664844282bd59a9826f35a0ba40634548048aff1 /dist | |
| parent | fa776f0d0b7b4ca7071f0aa912be84e81caf6b61 (diff) | |
| download | decky-loader-7aa4e9106a57b95014bc93a01adf6085f4a5329f.tar.gz decky-loader-7aa4e9106a57b95014bc93a01adf6085f4a5329f.zip | |
Make release script actually work again
Diffstat (limited to 'dist')
| -rw-r--r-- | dist/install_release.sh | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/dist/install_release.sh b/dist/install_release.sh index 88ec8232..270fba68 100644 --- a/dist/install_release.sh +++ b/dist/install_release.sh @@ -1,5 +1,10 @@ #!/bin/sh +if [ "$(whoami)" != "root" ]; then + su -c "$0 $*" + exit +fi + echo "Installing Steam Deck Plugin Loader release..." HOMEBREW_FOLDER=/home/deck/homebrew @@ -13,20 +18,22 @@ mkdir -p ${HOMEBREW_FOLDER}/plugins curl -L https://github.com/SteamDeckHomebrew/PluginLoader/releases/latest/download/PluginLoader --output ${HOMEBREW_FOLDER}/services/PluginLoader 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 -cat > /home/deck/.config/systemd/user/plugin_loader.service <<- EOM +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 [Service] Type=simple +User=root +Restart=always ExecStart=/home/deck/homebrew/services/PluginLoader WorkingDirectory=/home/deck/homebrew/services Environment=PLUGIN_PATH=/home/deck/homebrew/plugins [Install] -WantedBy=default.target +WantedBy=multi-user.target EOM -systemctl --user daemon-reload -systemctl --user start plugin_loader -systemctl --user enable plugin_loader +systemctl daemon-reload +systemctl start plugin_loader +systemctl enable plugin_loader |
