Skip to content

Instantly share code, notes, and snippets.

@isakvik
Created November 27, 2017 16:17
Show Gist options
  • Save isakvik/94c277239430dba43f9844118f48a981 to your computer and use it in GitHub Desktop.
Save isakvik/94c277239430dba43f9844118f48a981 to your computer and use it in GitHub Desktop.
waifubot installation script
#!/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