Wykres commitów

53 Commity (f5117e74d1fbe067befcc647183b09b9d112eb0e)

Autor SHA1 Wiadomość Data
Robert Adam f5117e74d1
Merge PR #20: Add compatbility support for old murmur.sqlite db
Problem:
Since mumble_server_config.ini is recreated every time, users of the old database filename murmur.sqlite will have their existing database ignored by the new default configuration setting.

Solution:
If the old murmur.sqlite database file exists in ${DATA_DIR}, use that as the database file.
This should cleanly support users of the old database.
2022-09-15 09:18:53 +02:00
restitux 711c0bbe9f Add compatbility support for old mumble.sqlite db 2022-09-14 14:13:59 -06:00
Robert Adam 141af419a6
Merge PR #19: Make Dockerfile compatible to latest upstream layout
With mumble-voip/mumble#5838 the file structure
of the upstream repo has changed slightly and most importantly the
location of the default server ini file has changed as well. Thus, we
now have to check multiple locations inside our Dockerfile in order to
make it work with the old and the new layout.
2022-09-12 15:05:29 +02:00
Robert Adam 10841a3686 Make Dockerfile compatible to latest upstream layout
With https://github.com/mumble-voip/mumble/pull/5838 the file structure
of the upstream repo has changed slightly and most importantly the
location of the default server ini file has changed as well. Thus, we
now have to check multiple locations inside our Dockerfile in order to
make it work with the old and the new layout.
2022-09-12 14:54:29 +02:00
Robert Adam 61aba4b1cd Name default DB mumble-server.sqlite 2022-09-11 10:04:07 +02:00
Robert Adam e8f58ba939
Merge PR #18: Include Mumble v1.4.274 in CI runs 2022-08-22 13:22:55 +02:00
Robert Adam 40adffd3ae Include Mumble v1.4.274 in CI runs 2022-08-22 13:11:04 +02:00
Robert Adam e2edd6c538
Merge PR #17: Don't log value of sensitive configs 2022-08-22 13:06:49 +02:00
Robert Adam 41e642eab3 Don't log value of sensitive configs
Fixes #15
2022-08-22 12:57:43 +02:00
Robert Adam 4d73da6902
Merge PR #14: Add toggle to allow "unknown" settings 2022-07-01 14:28:29 +02:00
Michel Pawlak a5dec0c874 update README.md 2022-07-01 10:11:48 +02:00
Michel Pawlak 305203fe85 update README.md 2022-07-01 10:10:30 +02:00
Michel Pawlak 6f40137ca8
Update README.md
Co-authored-by: Robert Adam <dev@robert-adam.de>
2022-07-01 10:08:17 +02:00
Michel Pawlak 84d73a7271
Replace Murmur with Mumble
Co-authored-by: Robert Adam <dev@robert-adam.de>
2022-07-01 10:02:07 +02:00
Michel Pawlak a13397cebb document MUMBLE_ACCEPT_UNKNOWN_SETTINGS environment variable 2022-06-30 21:14:46 +02:00
Michel Pawlak 3ee0ef3d63 fix indentation 2022-06-30 18:01:29 +02:00
Michel Pawlak 0d9bc1e0ea add option to accept unknown settings 2022-06-30 17:56:15 +02:00
azlux 6535e9dfc0
Merge pull request #11 from mumble-voip/Entrypoint-fix
Fixing readonly variable
2022-05-17 00:48:36 +02:00
Azlux e2c4855d2c Fixing readonly variable 2022-05-17 00:37:28 +02:00
Robert Adam 6a9d8f5cdb
Merge PR #6: Simplify entrypoint script a little bit 2022-05-16 15:00:30 +02:00
d3adb5 cf6a9fb4bf
refactor: use name normalizing function + sed for env vars
Add a function to "normalize" the name of config options that will be
used, while using sed instead of grep to both retrieve and manipulate
the names of environment variables that start with MUMBLE_CONFIG_.
2022-05-15 14:15:51 -03:00
d3adb5 3f908fd921
fix: remove underscores from cfg options in assoc array
Remove any possible underscores from the config options when creating
keys for the associative array used to look them up after capturing
environment variables.

This is a possible regression from fc0363a.
2022-05-15 10:43:12 -03:00
Robert Adam a0866ef90d
Merge PR #9: Update build-number reading 2022-05-11 08:09:45 +02:00
d3adb5 fc0363a448
refactor: use associative array for existing options
Use Bash's associative array for the existing configuration options and
for the translation of something like "DBUSER" to "dbUser", replacing
the for loop that existed before.
2022-05-10 21:48:48 -03:00
d3adb5 0f4fd08fe4
docs: restore a few comments removed in ec402cb
Restore a few of the comments removed in ec402cb.
2022-05-10 21:31:06 -03:00
d3adb5 8f23ab8913
refactor: populate existing_config_options with readarray
Populate the array that contains existing configuration options obtained
from the bare-bones configuration file using Bash's readarray builtin.
2022-05-10 20:29:49 -03:00
Thomas A 7585a42352 Update build-number reading
make build-number configurable with a build-argument
allow the build-number query to timeout
2022-05-10 19:35:15 +02:00
d3adb5 7f3c2c1996
refactor: eliminate shellcheck warnings & errors
Redirect multiple commands to the configuration file instead of making
multiple redirects, potentially limiting the number of times the file
needs to be opened for appending. (SC2129)

Use "${arr[*]}" not to mix array and string. (SC2145)
2022-05-08 22:40:44 -03:00
d3adb5 35cb859dc4
refactor: declare most relevant variables at the start
Declare the most relevant variables at the start of the script, so the
reader can be made aware of them more quickly.
2022-05-08 22:40:43 -03:00
d3adb5 ec402cb89b
refactor: remove comment clutter
Remove most comments and shorten some others. Focus should be on making
code clean and immediately readable instead of documented directly in
the script file.
2022-05-08 22:40:43 -03:00
d3adb5 9166af6125
refactor: shorten functions in entrypoint script
Shorten `array_contains` and `set_config` in a way that, in my opinion,
is still readable.
2022-05-08 22:10:42 -03:00
d3adb5 18649e6f87
refactor: inline a couple of if statements
Inline a couple of if statements for a shorter, even if not by much,
script.
2022-05-08 21:22:01 -03:00
d3adb5 c49e2c17fc
refactor: remove trailing whitespace
Remove trailing whitespace while there isn't much. This is discouraged,
since it can mess with git-blame information, but it irks me there is
trailing whitespace.

This commit might be dropped if requested during review. :(
2022-05-08 21:13:03 -03:00
d3adb5 4b57f8c040
refactor: use bash's extended test ([[]])
Replace the standard POSIX test command ([]) with Bash's builtin ([[]])
for consistency.

There was a single use of the double bracket syntax, but since the
script references Bash in its shebang, we might as well use it instead
of the POSIX one.
2022-05-08 21:07:09 -03:00
d3adb5 6b48b365d1
refactor: eliminate if by grep'ing for MUMBLE_CONFIG_
Use grep to fetch only environment variables that start with
`MUMBLE_CONFIG_`, rather than manually compare in an if statement,
getting rid of one level of indentation.
2022-05-08 20:53:47 -03:00
Robert Adam 54602c6fe9
Merge PR #5: CI: Add trigger for upstream releases 2022-05-07 21:04:13 +02:00
Robert Adam 674d8e887b CI: Add trigger for upstream releases 2022-05-07 20:52:20 +02:00
Robert Adam bf48d0b14e CI: Add flag for updating latest tag 2022-05-07 20:27:23 +02:00
Robert Adam 72da7dc7df
Merge PR #4: Improve GA workflow & add CI 2022-05-07 20:02:44 +02:00
Robert Adam 559f1d20c7 Parallelize tests 2022-05-07 19:57:37 +02:00
Robert Adam 41681db424 Add CI workflow 2022-05-07 19:51:10 +02:00
Robert Adam d20b031f01 Use reusable workflow for build & push 2022-05-07 19:51:10 +02:00
Robert Adam dd4ccc579c Don't build on ARM at all as the tests are failing there 2022-05-07 17:15:54 +02:00
Robert Adam c75f4af233 Don't build for ARM v7 as that currently still fails 2022-05-07 16:45:23 +02:00
Robert Adam 4552df49e6 Fix RegEx for matching build number from tag 2022-05-07 16:28:54 +02:00
Robert Adam fddc6cc461 Use -x for Bash scripts 2022-05-07 16:28:40 +02:00
Robert Adam d496c5fc99 Use Ubuntu 20.04 instead of 22.04 as base image
22.04 already ships OpenSSL 3, which is not supported by Mumble 1.4. So
at least for the time being, we stick with 20.04 a while longer.
2022-05-07 16:17:21 +02:00
Robert Adam b83724d7f7 Don't quote env variables in workflow 2022-05-07 16:09:50 +02:00
Robert Adam e3fad167b8 Use v2 of docker actions 2022-05-07 15:56:39 +02:00
Robert Adam 0c6a7bf787 Polished workflow file 2022-05-07 15:47:12 +02:00