diff options
author | John McLear <john@mclear.co.uk> | 2013-11-24 02:42:50 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2013-11-24 02:42:50 +0000 |
commit | 61df1facd2a7f25af352f48180be92db8a89fe66 (patch) | |
tree | 82fe1b675b157b1329fb73c1d91bbe60525081e7 /bin/deb-src/DEBIAN/preinst | |
parent | 8b821d42a22646a4727bbd7a003e5eeea5aa369c (diff) | |
download | etherpad-lite-61df1facd2a7f25af352f48180be92db8a89fe66.zip |
semi-working build script for deb packages
Diffstat (limited to 'bin/deb-src/DEBIAN/preinst')
-rwxr-xr-x | bin/deb-src/DEBIAN/preinst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/deb-src/DEBIAN/preinst b/bin/deb-src/DEBIAN/preinst new file mode 100755 index 00000000..51309ef4 --- /dev/null +++ b/bin/deb-src/DEBIAN/preinst @@ -0,0 +1,23 @@ +#!/bin/bash + +# Installs node if it isn't already installed +# +# Don't steamroll over a previously installed node version +# TODO provide a local version of node? + +VER="0.10.4" +ARCH="x86" +if [ `arch | grep 64` ] +then + ARCH="x64" +fi + +# TODO test version +if [ ! -f /usr/local/bin/node ] +then + pushd /tmp + wget -c "http://nodejs.org/dist/v${VER}/node-v${VER}-linux-${ARCH}.tar.gz" + rm -rf /tmp/node-v${VER}-linux-${ARCH} + tar xf node-v${VER}-linux-${ARCH}.tar.gz -C /tmp/ + cp -a /tmp/node-v${VER}-linux-${ARCH}/* /usr/local/ +fi |