rhasspy / wyoming-satellite

Remote voice satellite using Wyoming protocol
MIT License
639 stars 93 forks source link

How to uninstall? #115

Open jgdf42 opened 8 months ago

jgdf42 commented 8 months ago

How do I uninstall after running setup and installing?

TimP4w commented 6 months ago

just delete the folder

synesthesiam commented 6 months ago

You'll also want to stop and remove wyoming-*.service files from /etc/systemd/system

TimP4w commented 6 months ago

Oops, my bad sorry for the wrong advice...

@synesthesiam would it make sense to include an uninstall.sh script (or an equivalent python version?) Something like

#!/bin/bash

cd /etc/systemd/system

for service in wyoming-*.service; do
    if [ -f "$service" ]; then
        echo "Stopping and disabling $service..."
        systemctl stop "$service"
        systemctl disable "$service"
        echo "Deleting $service from /etc/systemd/system..."
        rm -f "$service"
    else
        echo "No services found"
        break
    fi
done

systemctl daemon-reload
echo "Wyoming Satellite was uninstalled. You may delete this folder."