File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 44#
55
66export JAIL_NAME=debian-jessie-passenger
7- export BASE_PATH=/home/lcostantini /jaulas
7+ export BASE_PATH=$( pwd ) /tmp /jaulas
88export MY_CHROOT=$BASE_PATH /$JAIL_NAME
99
1010if [[ ! -e $BASE_PATH /$JAIL_NAME ]]; then
@@ -34,6 +34,8 @@ cp /proc/mounts $MY_CHROOT/etc/mtab
3434
3535echo ' ==> Installing required basic packages...'
3636
37+ chroot $MY_CHROOT apt-get update
38+
3739chroot $MY_CHROOT apt-get install -y less curl gnupg build-essential ruby ruby-dev \
3840 zlib1g-dev libsqlite3-dev sqlite3 nodejs vim sudo git
3941
@@ -45,20 +47,5 @@ chroot $MY_CHROOT gem install bundler
4547
4648# --------------------------------------------------------------------------------
4749
48- echo ' ==> Installing passenger and nginx...'
49-
50- chroot $MY_CHROOT apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
51- chroot $MY_CHROOT apt-get install -y apt-transport-https ca-certificates
52-
53- chroot $MY_CHROOT sh -c ' echo deb https://oss-binaries.phusionpassenger.com/apt/passenger jessie main > /etc/apt/sources.list.d/passenger.list'
54- chroot $MY_CHROOT apt-get update
55-
56- chroot $MY_CHROOT apt-get install -y nginx-extras passenger
57-
58- # --------------------------------------------------------------------------------
59-
6050echo " 8:23:respawn:/usr/sbin/chroot $MY_CHROOT " \
6151 " /sbin/getty 38400 tty8" >> /etc/inittab
62-
63- # --------------------------------------------------------------------------------
64-
You can’t perform that action at this time.
0 commit comments