blob: 06349468959a11aa41f681cecbc48ba8740327f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
if [ ! -d /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
|