mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-04 04:18:13 +10:00
- Parsers: Superpower for all (Directive, FileLine, Include, DhcpHost, Leases, Hosts) - Shared ConfParserHelpers (Token, OptionalCommentPrefix) - DnsmasqConfOptionRegistry + DnsmasqOptionKind: typed options (ConfFile, ConfDir, Domain, DhcpRange, Server, Local, Address, DhcpOption, DhcpHost, Path, Flag, etc.) - EnsureManagedConfigHostedService: append conf-dir= to main config if missing, then create managed file; DnsmasqOptions + Dockerfile comments for permissions - Renames: ConfigLine->DnsmasqConfLine, ConfigSet->DnsmasqConfigSet, etc. - Test harness: entrypoint in scripts/, prepare-test-mount improvements - Status/Reload API and UI: stdout+stderr, exit code
8 lines
252 B
Bash
Executable File
8 lines
252 B
Bash
Executable File
#!/bin/sh
|
|
# If DNSMASQ_CONF is set, run dnsmasq in the background (same container as the app).
|
|
# Container main process is the app (exec below).
|
|
if [ -n "$DNSMASQ_CONF" ]; then
|
|
dnsmasq -k --conf-file="$DNSMASQ_CONF" &
|
|
fi
|
|
exec dotnet DnsmasqWebUI.dll
|