Skip to content

Commit a72b56b

Browse files
committed
Remove passenger and nginx installation from script.
1 parent fceae90 commit a72b56b

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

bootstrap.sh

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
export JAIL_NAME=debian-jessie-passenger
7-
export BASE_PATH=/home/lcostantini/jaulas
7+
export BASE_PATH=$(pwd)/tmp/jaulas
88
export MY_CHROOT=$BASE_PATH/$JAIL_NAME
99

1010
if [[ ! -e $BASE_PATH/$JAIL_NAME ]]; then
@@ -34,6 +34,8 @@ cp /proc/mounts $MY_CHROOT/etc/mtab
3434

3535
echo '==> Installing required basic packages...'
3636

37+
chroot $MY_CHROOT apt-get update
38+
3739
chroot $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-
6050
echo "8:23:respawn:/usr/sbin/chroot $MY_CHROOT " \
6151
"/sbin/getty 38400 tty8" >> /etc/inittab
62-
63-
# --------------------------------------------------------------------------------
64-

0 commit comments

Comments
 (0)