Skip to content

Commit

Permalink
add virtual alias trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
maxadamo committed Sep 24, 2024
1 parent aeda9e9 commit 93e6870
Show file tree
Hide file tree
Showing 18 changed files with 373 additions and 369 deletions.
4 changes: 2 additions & 2 deletions rootfs/etc/cont-init.d/01-setup-timezone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Set up timezone
if [ -z "${TZ}" ]; then
echo "WARNING: TZ environment variable not set"
echo "WARNING: TZ environment variable not set"
else
ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" >/etc/timezone
ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" >/etc/timezone
fi
10 changes: 7 additions & 3 deletions rootfs/etc/cont-init.d/02-setup-aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@
# Check to make sure the correct command line arguments have been set
EXITCODE=0
if [ -z "${POSTMASTER_EMAIL}" ]; then
echo "ERROR: POSTMASTER_EMAIL environment variable not set"
EXITCODE=1
echo "ERROR: POSTMASTER_EMAIL environment variable not set"
EXITCODE=1
fi
if [ $EXITCODE -ne 0 ]; then
exit 1
exit 1
fi

# Exit on failure
set -e

# Update aliases file
/usr/local/bin/update_aliases


# Update virtual aliases file
/usr/local/bin/update_virtual_aliases
Loading

0 comments on commit 93e6870

Please sign in to comment.