Skip to content

Instantly share code, notes, and snippets.

@kohitsujijess
Last active December 14, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kohitsujijess/5063051 to your computer and use it in GitHub Desktop.
Save kohitsujijess/5063051 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "setting for httpd"
sudo rm -rf /etc/httpd/conf.d/${USER}.conf
sudo cp -rf /etc/httpd/conf.d/xxx_setup /etc/httpd/conf.d/${USER}.conf
sudo sed -ie "s/xxx_setup/"${USER}"/g" /etc/httpd/conf.d/${USER}.conf
echo "delete old folder"
rm -rf /home/${USER}/www
echo "settings"
mkdir /home/${USER}/www
echo "clone git@github.com:"$1"/fuel.git "
cd /home/${USER}/www/
git clone git@github.com:$1/fuel.git
echo "graceful httpd"
sudo /etc/rc.d/init.d/httpd graceful
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment