-
-
Save ken-b4u/5102166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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