Skip to content

Commit e6cbe61

Browse files
committed
- pull latest versino of controller
- fix init script
1 parent a1b4ee7 commit e6cbe61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packer-ubuntu/custom-script.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compos
3232
chmod +x /usr/bin/docker-compose
3333

3434
echo "Downloading docker images"
35-
docker pull ubuntu:16.04
36-
docker pull schoolofdevops/chef-controller:v1.1
35+
#docker pull ubuntu:16.04
36+
docker pull schoolofdevops/chef-controller:v1.2.0
3737
docker pull schoolofdevops/chef-centos6-node:v1.1
38-
docker pull schoolofdevops/chef-ubuntu14-node:v1.1
38+
#docker pull schoolofdevops/chef-ubuntu14-node:v1.1
3939

4040
echo "copying codespace code"
4141
#copying codespace code
@@ -45,7 +45,7 @@ cp /tmp/*.yml /codespace/
4545
echo "modifying in rc.local"
4646
#modifying in rc.local
4747
cat <<EOF > /etc/rc.local
48-
#!/bin/sh -e
48+
#!/bin/bash
4949
#
5050
# rc.local
5151
#
@@ -59,4 +59,4 @@ cat <<EOF > /etc/rc.local
5959
# By default this script does nothing.
6060
cd /codespace && docker-compose up -d
6161
exit 0
62-
EOF
62+
EOF

0 commit comments

Comments
 (0)