mirror of
https://github.com/Astatin3/photonvision-2025.0.0-beta-6.git
synced 2026-06-09 00:28:06 -06:00
16 lines
365 B
Bash
16 lines
365 B
Bash
|
|
#!/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 daemeon-reload
|
||
|
|
systemctl reset-failed
|