docker-entrypoint.sh 392 B

12345678910111213141516
  1. #!/bin/sh
  2. set -e
  3. if [ ! -f /etc/4get/certs/fullchain.pem ] || [ ! -f /etc/4get/certs/privkey.pem ]; then
  4. echo "Using http configuration"
  5. cp /etc/apache2/http.conf /etc/apache2/httpd.conf
  6. else
  7. echo "Using https configuration"
  8. cp /etc/apache2/https.conf /etc/apache2/httpd.conf
  9. fi
  10. php82 ./docker/gen_config.php
  11. echo "4get is running"
  12. exec httpd -DFOREGROUND