Last active
August 29, 2015 14:14
-
-
Save tvrcgo/89677432d01ac0c8e726 to your computer and use it in GitHub Desktop.
centos deploy
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 | |
# node.js | |
cd ~ | |
wget http://nodejs.org/dist/v0.10.36/node-v0.10.36-linux-x64.tar.gz | |
tar zxvf node-v0.10.36-linux-x64.tar.gz | |
cp ./node-v0.10.36-linux-x64 /usr/local/node | |
ln -s /usr/local/node/bin/* /usr/sbin/ | |
# Git | |
## init shell | |
wget https://gist.github.com/tvrcgo/972d610338ee8c58f7ec/raw/c4e19e1fb25d4fd416fa8056b83fd00f445ac2f7/git-init.sh -P /usr/local/bin/ | |
chmod a+x /usr/local/bin/git-init.sh | |
## auto refresh changes hook | |
wget https://gist.github.com/tvrcgo/59d2ed2b40f8a9cab116/raw/e4f8e92448eca05f0332bfceb70a163a2427611f/post-receive -P /usr/share/git-core/templates/hooks/post-receive.sample | |
chmod 755 /usr/share/git-core/templates/hooks/post-receive.sample | |
exec ssh-agent bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment