[ec2] add default provisioning script

This commit is contained in:
Fabio Erculiani
2011-08-01 10:23:29 +02:00
parent ae80cb3cc8
commit 92bc8e202a
4 changed files with 35 additions and 4 deletions

16
scripts/image_remaster_post.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
# execute parent script
/sabayon/scripts/remaster_post.sh
if [ "${?}" != "0" ]; then
exit 1
fi
# Setup provisioning script for Amazon EC2 to load at startup
EC2_DIR="/sabayon/remaster/ec2_image"
PROV_SCRIPT="ec2.start"
cp -p "${EC2_DIR}/${PROV_SCRIPT}" "${CHROOT_DIR}/etc/local.d/" || exit 1
chown root:root "${CHROOT_DIR}/etc/local.d/${PROV_SCRIPT}" || exit 1
chmod 744 "${CHROOT_DIR}/etc/local.d/${PROV_SCRIPT}" || exit 1
exit 0