2014-10-17 12:02:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-11-05 12:43:16 +00:00
|
|
|
#Usage from deploy/deploy.sh:
|
|
|
|
#ssh $USER@$SERVER sudo sh ./onServer.sh $BRANCH $SERVER
|
|
|
|
|
2014-10-17 12:02:52 +00:00
|
|
|
echo Starting etcd:
|
|
|
|
/usr/bin/coreos-cloudinit --from-file=/var/lib/coreos-install/user_data
|
|
|
|
|
2014-10-17 15:22:32 +00:00
|
|
|
echo Cloning the indiehosters repo into /data/indiehosters:
|
2014-11-04 14:27:07 +00:00
|
|
|
mkdir -p /data
|
2014-10-17 12:02:52 +00:00
|
|
|
cd /data
|
2014-10-17 15:22:32 +00:00
|
|
|
git clone https://github.com/indiehosters/indiehosters.git
|
|
|
|
cd indiehosters
|
2014-10-17 12:02:52 +00:00
|
|
|
|
2014-10-17 15:22:32 +00:00
|
|
|
echo Checking out $1 branch of the IndieHosters indiehosters:
|
2014-10-17 12:02:52 +00:00
|
|
|
git checkout $1
|
|
|
|
git pull
|
|
|
|
|
|
|
|
echo Running the server setup script:
|
|
|
|
sh scripts/setup.sh $2
|