Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ##
- # Delivery Agent Sandbox Provisioning Script
- #
- # Chris Childress <cchildress@deliveryagent.com>
- #
- # Assumptions :
- #
- # 1. git 1.8+
- # Set to 1 to use SSH over HTTPs when cloning
- USE_SSH=0
- # The name of the ecom repository directory
- ECOM_REPO="ecom"
- # The name of the webdev repository directory
- WEBDEV_REPO="webdev"
- # The engine directory
- ENGINE_DIR="engine"
- # The store directory
- STORE_DIR="da.store"
- ##
- # Set up the home directory
- cd ~
- mkdir www
- cd www
- ##
- # Clone the repository
- if [ "$USE_SSH" = 1 ]
- then
- echo "Cloning with SSH"
- git clone ssh://git@sf-stash.deliveryagent.com:7999/code/ecom.git $ECOM_REPO
- git clone ssh://git@sf-stash.deliveryagent.com:7999/code/webdev.git $WEBDEV_REPO
- else
- echo "Cloning with HTTPs"
- git clone https://$USER@sf-stash.deliveryagent.com/scm/code/ecom.git $ECOM_REPO
- git clone https://$USER@sf-stash.deliveryagent.com/scm/code/webdev.git $WEBDEV_REPO
- fi
- ##
- # Sym links
- ln -s $ECOM_REPO/engine $ENGINE_DIR
- ln -s $WEBDEV_REPO $STORE_DIR
- ##
- # Checkout develop
- cd $ENGINE_DIR
- git checkout develop
- git pull
- cd ../$STORE_DIR
- git checkout develop
- git pull
- echo "..fin"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement