Customizable HTTP port to listen on
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2023-10-26 14:42:19 +02:00
parent 8693c98ae8
commit 542658d73e
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ BACKUPPC_UUID="${BACKUPPC_UUID:-1000}"
BACKUPPC_GUID="${BACKUPPC_GUID:-1000}"
BACKUPPC_USERNAME=$(getent passwd "$BACKUPPC_UUID" | cut -d: -f1)
BACKUPPC_GROUPNAME=$(getent group "$BACKUPPC_GUID" | cut -d: -f1)
BACKUPPC_PORT="${BACKUPPC_PORT:-80}"
if [ -f /firstrun ]; then
echo 'First run of the container. BackupPC will be installed.'

View File

@@ -1,4 +1,4 @@
server.port = 80
server.port = env.BACKUPPC_PORT
server.username = env.BACKUPPC_USERNAME
server.groupname = env.BACKUPPC_GROUPNAME
server.document-root = "/srv/http"