mirror of https://github.com/zulip/zulip.git
Add a script to build and install Node.js on one of our servers
This should be part of the Puppet config eventually, but I'm not sure how to do it. (imported from commit 23063e1e492f6e1cad0afbcf4adffbb6e25aedf7)
This commit is contained in:
parent
29f759e74f
commit
b5c2002f62
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# Build Node.js from source on one of our servers.
|
||||
|
||||
if [ $(whoami) != root ]; then
|
||||
echo 'Run this script as root.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Print commands as we run them.
|
||||
set -x
|
||||
|
||||
cd /root
|
||||
|
||||
git clone https://github.com/joyent/node.git
|
||||
cd node
|
||||
git checkout v0.10.2
|
||||
./configure
|
||||
nice make
|
||||
make install
|
|
@ -100,4 +100,6 @@ cat <<EOF
|
|||
|
||||
Done.
|
||||
|
||||
FIXME: Manually run servers/install-nodejs if necessary
|
||||
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue