mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Add uninstall script (#78)
This commit is contained in:
committed by
GitHub
parent
74f20a3150
commit
61ab1b2bd2
15
scripts/uninstall.sh
Normal file
15
scripts/uninstall.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf /opt/photonvision/
|
||||
echo "Uninstalling systemd service..."
|
||||
systemctl stop photonvision
|
||||
systemctl disable photonvision
|
||||
rm /lib/systemd/system/photonvision.service
|
||||
rm /etc/systemd/system/photonvision.service
|
||||
systemctl dameon-relaod
|
||||
systemctl reset-failed
|
||||
Reference in New Issue
Block a user