Skip to content

dnsmasq config gets generated on each restart #224

Description

@erbesharat

We have a volume in our docker-compose that would mount the dnsmasq.conf file for subspace but it's being replaced by the entrypoint script on each restart. This condition needs to be refined a little to ignore the dnsmasq.conf file if it already exists.

subspace/entrypoint.sh

Lines 196 to 209 in 1a2d4f2

if ! test -d /etc/service/dnsmasq; then
cat <<DNSMASQ >/etc/dnsmasq.conf
# Only listen on necessary addresses.
listen-address=${DNSMASQ_LISTEN_ADDRESS}
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Allow extending dnsmasq by providing custom configurations.
conf-dir=/etc/dnsmasq.d
DNSMASQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions