blob: c9af4de748ceb6e360d06ea73d4bac8611ae6c25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
if [ ! /opt/ergo ]
echo
then
read -p "Remove Ergo? This will kill running Ergo services and cause data loss. " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Removing Ergo"
systemctl disable --now ergo.service || true
rm -f /etc/systemd/system/ergo.service
rm -rf /opt/ergo
userdel -f ergo
groupdel -f ergo
echo "OK"
fi
else
echo "Could not find a compatible installation of Ergo."
fi
|