Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/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