2024-08-19 12:12:56 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
2024-08-19 14:12:45 +02:00
|
|
|
# Retrieve the configured external port from the options
|
|
|
|
external_port=$(bashio::config 'external_port')
|
|
|
|
|
|
|
|
# Configure port mapping dynamically
|
|
|
|
echo "Mapping internal port 80 to external port ${external_port}"
|
|
|
|
|
2024-08-19 15:20:44 +02:00
|
|
|
# Ensure that apache2 is installed and start it using OpenRC
|
|
|
|
rc-service apache2 start
|
2024-08-19 12:12:56 +02:00
|
|
|
|
|
|
|
# Keep the container running
|
|
|
|
tail -f /dev/null
|