Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lxc -> vserver

  • Loading branch information...
commit c26fb54ae848ca70f32ec9d3b86a07e35ef8b76f 1 parent 300f8c7
@contra contra authored
Showing with 20 additions and 14 deletions.
  1. +7 −2 install
  2. +1 −2  package.json
  3. +0 −10 setup/lxc
  4. +12 −0 setup/vserver
View
9 install
@@ -6,7 +6,12 @@ echo "| '_ \ / _ \ / _' |/ _ \/ __| __/ _ \ '__|"
echo "| | | | (_) | (_| | __/\__ \ || __/ |"
echo "|_| |_|\___/ \__,_|\___||___/\__\___|_|"
echo ""
-echo "Installation in progress. Make sure this installer has root!"
+echo "Installation in progress. DO NOT EXIT AT ANY TIME!"
+
+if [ "$(id -u)" != "0" ]; then
+ echo "Please run as root."
+ exit 1
+fi
rm -rf ./setup/tmp/
mkdir ./setup/tmp/
@@ -14,7 +19,7 @@ cd ./setup
./sys
./node
./redis
-./lxc;
+./vserver
cd ../
npm install
rm -rf ./setup/tmp/
View
3  package.json
@@ -13,8 +13,7 @@
"snapi":"*",
"redis":"*",
"hiredis":"*",
- "resque":"*",
- "socket.io":"*"
+ "node-vserver":"*"
},
"engines":{
"node":"0.6.5"
View
10 setup/lxc
@@ -1,10 +0,0 @@
-#!/bin/sh
-echo "Installing LXC userspace..."
-mkdir ./tmp/lxc
-curl -L -s http://lxc.sourceforge.net/download/lxc/lxc-0.7.5.tar.gz | tar xz -C ./tmp/lxc --strip-components 1
-cd ./tmp/lxc
-./configure --prefix=/usr; make; make install
-
-echo "Configuring LXC userspace..."
-# TODO
-
View
12 setup/vserver
@@ -0,0 +1,12 @@
+#!/bin/sh
+echo "Installing vserver userspace..."
+mkdir ./tmp/vserver
+cd ./tmp/vserver
+
+add-apt-repository ppa:christoph-lukas/ppa
+apt-get update
+apt-get -y install linux-image-vserver linux-headers-vserver util-vserver vserver vserver-debiantools
+
+echo "Configuring vserver userspace..."
+# TODO
+
Please sign in to comment.
Something went wrong with that request. Please try again.