feat: Add an uninstall script and make systemctl commands in the install script more robust.
This commit is contained in:
@@ -6,8 +6,8 @@ set -e
|
||||
echo "Building Toak Native AOT executable..."
|
||||
dotnet publish -c Release -r linux-x64
|
||||
|
||||
systemctl --user stop toak.service
|
||||
systemctl --user disable toak.service
|
||||
systemctl --user stop toak.service >/dev/null 2>&1 || true
|
||||
systemctl --user disable toak.service >/dev/null 2>&1 || true
|
||||
echo "Installing to /usr/bin/toak... (This may prompt for your sudo password)"
|
||||
sudo cp bin/Release/net10.0/linux-x64/publish/Toak /usr/bin/toak
|
||||
|
||||
|
||||
Reference in New Issue
Block a user