Skip to content

Commit

Permalink
Merge pull request openshift#127 from Nordix/fix-dnsmasq-mael
Browse files Browse the repository at this point in the history
Fix python version in rundnsmasq
  • Loading branch information
metal3-io-bot committed Jan 10, 2020
2 parents c7eaddc + b4dd91e commit cea3650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rundnsmasq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mkdir -p /shared/html/pxelinux.cfg
cp /tftpboot/undionly.kpxe /tftpboot/ipxe.efi /tftpboot/snponly.efi /shared/tftpboot

# Template and write dnsmasq.conf
python -c 'import os; import sys; import jinja2; sys.stdout.write(jinja2.Template(sys.stdin.read()).render(env=os.environ))' </etc/dnsmasq.conf.j2 >/etc/dnsmasq.conf
python3 -c 'import os; import sys; import jinja2; sys.stdout.write(jinja2.Template(sys.stdin.read()).render(env=os.environ))' </etc/dnsmasq.conf.j2 >/etc/dnsmasq.conf

for iface in $( echo "$DNSMASQ_EXCEPT_INTERFACE" | tr ',' ' '); do
sed -i -e "/^interface=.*/ a\except-interface=${iface}" /etc/dnsmasq.conf
Expand Down

0 comments on commit cea3650

Please sign in to comment.