Customizable HTTP port to listen on
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
@@ -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.'
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user