Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "This will remove all files of your bot-installation"
- read -p "Are you sure you want to continue? (y/n)" -r
- if [[ $REPLY =~ ^[Yy]$ || $REPLY =~ ^[Yy][Ee][Ss]$ ]]; then
- SERVICE_FILE="/lib/systemd/system/triplea-bot@.service"
- if [[ -f "$SERVICE_FILE" ]]; then
- sudo service 'triplea-bot@*' stop
- sudo systemctl disable triplea-bot@
- sudo rm $SERVICE_FILE
- fi
- rm $0
- DIR=$(dirname $0)
- if [[ $DIR -ef $PWD ]]; then
- DIR=$PWD
- cd ..
- fi
- rm -r $DIR
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement