代码拉取完成,页面将自动刷新
#!/bin/bash
VERSION=0.1
# printing greetings
echo "Skypool mining uninstall script v$VERSION."
echo
if [ -z $HOME ]; then
echo "ERROR: Please define HOME environment variable to your home directory"
exit 1
fi
if [ ! -d $HOME ]; then
echo "ERROR: Please make sure HOME directory $HOME exists"
exit 1
fi
echo "[*] Removing skypool miner"
if sudo -n true 2>/dev/null; then
sudo systemctl stop skypool_miner.service
sudo systemctl disable skypool_miner.service
rm -f /etc/systemd/system/skypool_miner.service
sudo systemctl daemon-reload
sudo systemctl reset-failed
fi
sed -i '/skypool/d' $HOME/.profile
killall -9 xmrig
echo "[*] Removing $HOME/skypool directory"
rm -rf $HOME/skypool
echo "[*] Uninstall complete"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。