cic-staff-installer/uninstall-evm.sh

39 lines
1.2 KiB
Bash

red=`tput setaf 1`
reset=`tput sgr0`
systemctl --user stop kitabu
systemctl --user stop bloxberg
systemctl --user disable kitabu
systemctl --user disable bloxberg
echo -n "
${red}WARNING:${reset} The following will be DELETED if present:
Directories:
$HOME/.local/share/io.parity.ethereum
$HOME/.config/io.parity.ethereum
Files:
$HOME/.local/bin/openethereum
$HOME/.local/share/openethereum
$HOME/.local/bin/parity
$HOME/.config/systemd/user/kitabu.service
$HOME/.config/systemd/user/bloxberg.service
$HOME/.config/environment.d/01-bloxberg.conf
$HOME/.config/environment.d/01-kitabu.conf
Would you still like to continue? (y/n):"
read confirmed
if [ "$confirmed" == "y" ]; then
echo "Deleting..."
rm -rf $HOME/.local/share/io.parity.ethereum
rm -rf $HOME/.config/io.parity.ethereum
rm $HOME/.local/bin/openethereum
rm $HOME/.local/bin/parity
rm -rf $HOME/.local/share/openethereum
rm $HOME/.config/systemd/user/kitabu.service
rm $HOME/.config/systemd/user/bloxberg.service
rm $HOME/.config/environment.d/01-bloxberg.conf
rm $HOME/.config/environment.d/01-kitabu.conf
echo "Done"
else
echo "Aborting"
fi
exit 0