Accept both "PUID" or "AZURACAST_PUID" for in-container UID setting.

This commit is contained in:
Buster Neece 2023-12-15 12:50:34 -06:00
parent 8d14d6d55e
commit 4f9adab922
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
#!/bin/bash
PUID=${PUID:-1000}
PGID=${PGID:-1000}
AZURACAST_PUID="${AZURACAST_PUID:-1000}"
AZURACAST_PGID="${AZURACAST_PGID:-1000}"
PUID="${PUID:-$AZURACAST_PUID}"
PGID="${PGID:-$AZURACAST_PGID}"
groupmod -o -g "$PGID" azuracast
usermod -o -u "$PUID" azuracast