Skip to content

Instantly share code, notes, and snippets.

@ken-b4u
Forked from kohitsujijess/gist:5063051
Created March 6, 2013 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ken-b4u/5102166 to your computer and use it in GitHub Desktop.
Save ken-b4u/5102166 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 -i "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