mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Move regenconf after the paching of dnsmasq
This commit is contained in:
parent
7e82b0d6f5
commit
916be55488
1 changed files with 4 additions and 5 deletions
9
debian/postinst
vendored
9
debian/postinst
vendored
|
@ -11,10 +11,7 @@ do_configure() {
|
||||||
bash /usr/share/yunohost/hooks/conf_regen/06-slapd init
|
bash /usr/share/yunohost/hooks/conf_regen/06-slapd init
|
||||||
bash /usr/share/yunohost/hooks/conf_regen/15-nginx init
|
bash /usr/share/yunohost/hooks/conf_regen/15-nginx init
|
||||||
else
|
else
|
||||||
echo "Regenerating configuration, this might take a while..."
|
echo "Patching dnsmasq service"
|
||||||
yunohost service regen-conf --output-as none
|
|
||||||
|
|
||||||
echo "Patch Dnsmasq service"
|
|
||||||
DNSMASQ_PATCH=$(cat << 'EOF'
|
DNSMASQ_PATCH=$(cat << 'EOF'
|
||||||
index 46abdc4..49556ad 100644 (file)
|
index 46abdc4..49556ad 100644 (file)
|
||||||
--- a/debian/init
|
--- a/debian/init
|
||||||
|
@ -30,9 +27,11 @@ index 46abdc4..49556ad 100644 (file)
|
||||||
start()
|
start()
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
patch -N /etc/init.d/dnsmasq <<< "$DNSMASQ_PATCH" || true
|
patch -N /etc/init.d/dnsmasq <<< "$DNSMASQ_PATCH" || true
|
||||||
|
|
||||||
|
echo "Regenerating configuration, this might take a while..."
|
||||||
|
yunohost service regen-conf --output-as none
|
||||||
|
|
||||||
echo "Launching migrations.."
|
echo "Launching migrations.."
|
||||||
yunohost tools migrations migrate --auto
|
yunohost tools migrations migrate --auto
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue