Created
November 27, 2017 16:17
-
-
Save isakvik/94c277239430dba43f9844118f48a981 to your computer and use it in GitHub Desktop.
waifubot installation script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#argument: needs URL | |
if [ "$1" == "" ]; then | |
exit 1 | |
fi | |
rm -rf /home/pi/waifubot-0.0.1/ | |
wget "$1" | |
tar -xvf ${1:19} | |
rm ${1:19} | |
# TODO: set up screen automatically on reboot, run bot with arguments | |
# to make it say it rebooted? also, set up startup thing | |
screen -S pts-0.tag4 -X stuff ^C | |
screen -S pts-0.tag4 -X stuff 'sudo /home/pi/waifubot-0.0.1/bin/waifubot\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment