Last active
April 14, 2019 23:59
-
-
Save edk0/489b31f28f533f933ca6c172ab9b61e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
adduser --quiet --disabled-password warrior | |
apt-get update | |
apt-get install -y tmux git-core libgnutls28-dev lua5.1 liblua5.1-0 liblua5.1-0-dev screen python-dev python-pip bzip2 zlib1g-dev flex autoconf | |
su - warrior -c ' | |
pip install --user warcio seesaw | |
git clone https://github.com/ArchiveTeam/googleplus-grab | |
(cd googleplus-grab && ./get-wget-lua.sh) | |
echo "#!/bin/bash" >> ~/run.sh | |
echo "cd ~/googleplus-grab" >> ~/run.sh | |
echo "tmux new -d ~/.local/bin/run-pipeline pipeline.py --concurrent 4 edk --disable-web-server" >> ~/run.sh | |
chmod +x ~/run.sh | |
echo "@reboot /home/warrior/run.sh" > ~/crontab | |
crontab ~/crontab | |
~/run.sh | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment