Skip to content

Instantly share code, notes, and snippets.

@dinukasal
Last active November 14, 2017 15:26
Show Gist options
  • Save dinukasal/cec6c2b331a935c37badef8fcc8a80ca to your computer and use it in GitHub Desktop.
Save dinukasal/cec6c2b331a935c37badef8fcc8a80ca to your computer and use it in GitHub Desktop.
if [ -d "$p2p_fs" ]; then
cd p2p_fs
git pull
else
git clone https://github.com/dinukasal/p2p_fs
cd p2p_fs
fi
cd ~/
scp -r p2p_fs/ student@10.8.97.84:~/
scp -r p2p_fs/ student@10.8.97.79:~/
scp -r p2p_fs/ student@10.8.97.46:~/
scp -r p2p_fs/ student@10.8.97.77:~/
scp -r p2p_fs/ student@10.8.97.76:~/
scp -r p2p_fs/ student@10.8.97.75:~/
scp -r p2p_fs/ student@10.8.97.74:~/
cd p2p_fs
chmod +x server.sh
./server.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment