mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #501 from YunoHost/fix-patch-dnsmasq
[fix] Patch dnsmasq to read correctly dns-root-data
This commit is contained in:
commit
ee6d81285e
3 changed files with 25 additions and 1 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
|||
yunohost (2.7.14.3) stable; urgency=low
|
||||
|
||||
* [fix] Patch dnsmasq to read correctly dns-root-data
|
||||
|
||||
-- ljf <ljf+yunohost@grimaud.me> Tue, 26 Jun 2018 00:49:00 +0000
|
||||
|
||||
yunohost (2.7.14.2) stable; urgency=low
|
||||
|
||||
* [fix] Indicate YunoHost conflict with a specific version of dns-root-data
|
||||
|
|
1
debian/control
vendored
1
debian/control
vendored
|
@ -40,7 +40,6 @@ Conflicts: iptables-persistent
|
|||
, yunohost-config-dovecot, yunohost-config-slapd
|
||||
, yunohost-config-nginx, yunohost-config-amavis
|
||||
, yunohost-config-mysql, yunohost-predepends
|
||||
, dns-root-data (>= 2017072601~deb8u2)
|
||||
Replaces: moulinette-yunohost, yunohost-config
|
||||
, yunohost-config-others, yunohost-config-postfix
|
||||
, yunohost-config-dovecot, yunohost-config-slapd
|
||||
|
|
19
debian/postinst
vendored
19
debian/postinst
vendored
|
@ -14,6 +14,25 @@ do_configure() {
|
|||
echo "Regenerating configuration, this might take a while..."
|
||||
yunohost service regen-conf --output-as none
|
||||
|
||||
echo "Patch Dnsmasq service"
|
||||
DNSMASQ_PATCH=$(cat << 'EOF'
|
||||
index 46abdc4..49556ad 100644 (file)
|
||||
--- a/debian/init
|
||||
+++ b/debian/init
|
||||
@@ -111,7 +111,7 @@ DNSMASQ_OPTS="$DNSMASQ_OPTS --local-service"
|
||||
ROOT_DS="/usr/share/dns/root.ds"
|
||||
|
||||
if [ -f $ROOT_DS ]; then
|
||||
- DNSMASQ_OPTS="$DNSMASQ_OPTS `sed -e s/". IN DS "/--trust-anchor=.,/ -e s/" "/,/g $ROOT_DS | tr '\n' ' '`"
|
||||
+ DNSMASQ_OPTS="$DNSMASQ_OPTS `sed -e s/"^.*DS[\t ]"/--trust-anchor=.,/ -e s/" "/,/g $ROOT_DS | tr '\n' ' '`"
|
||||
fi
|
||||
|
||||
start()
|
||||
EOF
|
||||
)
|
||||
|
||||
patch -N /etc/init.d/dnsmasq <<< "$DNSMASQ_PATCH" | true
|
||||
|
||||
echo "Launching migrations.."
|
||||
yunohost tools migrations migrate --auto
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue