Skip to content

Commit

Permalink
no double no
Browse files Browse the repository at this point in the history
  • Loading branch information
azlux committed Jun 5, 2024
1 parent 4ef2f48 commit 1e759de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ The following _additional_ variables can be set for further server configuration
| Environment Variable | Description |
|----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------- |
| `MUMBLE_ACCEPT_UNKNOWN_SETTINGS` | Set to `true` to force the container to accept unknown settings passed as a `MUMBLE_CONFIG_` variable (see note below). |
| `MUMBLE_CHOWN` | Set to `false` to avoid the entrypoint to `chown` you `/data` folder |
| `MUMBLE_CUSTOM_CONFIG_FILE` | Specify a custom config file path - **all `MUMBLE_CONFIG_` variables are IGNORED** <br/>(it's best to use a path inside the volume `/data/`) |
| `MUMBLE_NO_CHOWN` | Set to `true` to avoid the entrypoint to `chown` you `/data` folder |
| `MUMBLE_SUPERUSER_PASSWORD` | Specifies the SuperUser (Admin) password for this server. If this is not given, a random password will be generated upon first startup. |
| `MUMBLE_VERBOSE` | Set to `true` to enable verbose logging in the server |

Expand Down
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ readonly CONFIG_REGEX="^(\;|\#)?\ *([a-zA-Z_0-9]+)=.*"
CONFIG_FILE="${DATA_DIR}/mumble_server_config.ini"
MUMBLE_UID=${MUMBLE_UID:-10000}
MUMBLE_GID=${MUMBLE_GID:-10000}
MUMBLE_CHOWN=${MUMBLE_CHOWN:-true}

readonly SENSITIVE_CONFIGS=(
"dbPassword"
Expand Down Expand Up @@ -167,7 +168,7 @@ echo "Preparing Mumble server to run as uid=$(MUMBLE_UID) gid=$(MUMBLE_GID)"
if [[ "$MUMBLE_UID" != "0" ]]; then
groupmod -og "$MUMBLE_GID" mumble
usermod -ou "$MUMBLE_UID" mumble
if [[ "$MUMBLE_NO_CHOWN" = true ]]; then
if [[ "$MUMBLE_CHOWN" = true ]]; then
echo "Changing owner of folder {DATA_DIR}"
chown -R mumble:mumble ${DATA_DIR}
fi
Expand Down

0 comments on commit 1e759de

Please sign in to comment.