contrib/docker/apache-server/cmd.sh
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | echo "Starting Apache HTTP Server on port 80" |
| 4 | echo "We hope you remembered to publish this port when running the container!" |
| 5 | echo "If this is an interactive container, simply CTRL^C to stop." |
| 6 | |
| 7 | (. /etc/apache2/envvars && /usr/sbin/apache2 -DFOREGROUND) & |
| 8 | |
| 9 | (set -o allexport && . /etc/anubis/hgweb.env && set +o allexport && /usr/bin/anubis) & |
| 10 | |
| 11 | wait -n |
| 12 | |
| 13 | exit $? |