Skip to content

Commit

Permalink
Fix pg_dump call in AMI builder
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhooper committed May 2, 2012
1 parent 926ffca commit a94c455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ami/build-ami.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ rmdir "$MOUNT_DIR"
mkdir "$MOUNT_DIR"
sudo mount -o loop "$UBUNTU_IMAGE_FILENAME" "$MOUNT_DIR"

pg_dump -Fc -O -f "$DIR/bikefile-data.psql" bikefile

# Set up chroot-i-ness
#sudo cp /etc/resolv.conf "$MOUNT_DIR"/etc/resolv.conf
sudo chroot "$MOUNT_DIR" mount -t proc none /proc
Expand All @@ -33,8 +35,6 @@ exit 101
EOF
sudo chmod 755 "$MOUNT_DIR"/usr/sbin/policy-rc.d

pg_dump -Fc -O -f "$MOUNT_DIR/opt/bikefile/bikefile-data.psql" bikefile

cat "$FILELIST" | while read -a line; do
orig=${line[0]}
dest=${line[1]}
Expand Down

0 comments on commit a94c455

Please sign in to comment.