2011-08-01 10:23:29 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-07-25 13:21:49 +02:00
|
|
|
# Path to molecules.git dir
|
|
|
|
SABAYON_MOLECULE_HOME="${SABAYON_MOLECULE_HOME:-/sabayon}"
|
|
|
|
export SABAYON_MOLECULE_HOME
|
|
|
|
|
2011-08-01 10:23:29 +02:00
|
|
|
# execute parent script
|
2012-07-25 13:21:49 +02:00
|
|
|
"${SABAYON_MOLECULE_HOME}"/scripts/remaster_post.sh
|
2011-08-01 10:23:29 +02:00
|
|
|
if [ "${?}" != "0" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Setup provisioning script for Amazon EC2 to load at startup
|
2012-07-25 13:21:49 +02:00
|
|
|
EC2_DIR="${SABAYON_MOLECULE_HOME}/remaster/ec2_image"
|
2011-08-01 10:23:29 +02:00
|
|
|
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
|