build/tinderbox/glsa-scheduler
2014-11-02 09:42:47 +01:00

22 lines
373 B
Bash
Executable File

#!/bin/bash
unset PORTAGE
unset PORTAGE_TMPDIR
set -e
if [ "${#}" != "3" ]; then
echo "Invalid arguments." >&2
exit 1
fi
CHROOT_PATH="${1}"
ARCH_NAME="${2}"
CHROOT_PREFIX="${3}"
(
${CHROOT_PREFIX} chroot "${CHROOT_PATH}" \
/sabayon/bin/glsa-digest 2>&1
) | mail -s "GLSA tracker of $(date +%Y-%m-%d) for ${ARCH_NAME}" \
entropy-team@lists.sabayon.org