Permalink
Showing
with
28 additions
and 1 deletion.
- +2 −0 Dockerfile
- +13 −0 container_files/usr-local-bin/setup-timezone.sh
- +0 −1 container_files/usr-local-bin/start-midpoint.sh
- +2 −0 container_files/usr-local-bin/startup.sh
- +1 −0 demo/complex/.env
- +1 −0 demo/complex/docker-compose.yml
- +1 −0 demo/extrepo/.env
- +1 −0 demo/extrepo/docker-compose.yml
- +1 −0 demo/postgresql/.env
- +1 −0 demo/postgresql/docker-compose.yml
- +2 −0 demo/shibboleth/.env
- +1 −0 demo/shibboleth/docker-compose.yml
- +1 −0 demo/simple/.env
- +1 −0 demo/simple/docker-compose.yml
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
if [[ -n $TIMEZONE ]]; then | ||
echo "*** Setting timezone to '$TIMEZONE'" | ||
if [[ -e /usr/share/zoneinfo/$TIMEZONE ]]; then | ||
unlink /etc/localtime | ||
ln -s /usr/share/zoneinfo/$TIMEZONE /etc/localtime | ||
echo "date (UTC) is: $(date -u)" | ||
echo "date (current timezone) is $(date)" | ||
else | ||
echo "Error: time zone '$TIMEZONE' is unknown; not setting it." | ||
fi | ||
fi |