[fix] Do not enable yunohost-firewall service at install

This commit is contained in:
Jérôme Lebleu 2015-10-09 12:48:45 +02:00
parent f4a9f1b85b
commit 4e790e2626
2 changed files with 7 additions and 4 deletions

5
debian/rules vendored
View file

@ -5,8 +5,11 @@
#export DH_VERBOSE=1
%:
dh ${@} --with=systemd,python2
dh ${@} --with=python2
override_dh_installinit:
dh_systemd_enable --name yunohost-api
dh_systemd_enable --name yunohost-firewall --no-enable
dh_installinit --name=yunohost-api
dh_installinit --name=yunohost-firewall
dh_systemd_start

View file

@ -269,10 +269,10 @@ def tools_postinstall(domain, password, ignore_dyndns=False):
# Enable UPnP silently and reload firewall
firewall_upnp('enable', no_refresh=True)
firewall_reload()
# Enable iptables at boot time
os.system('update-rc.d yunohost-firewall defaults')
# Enable and start YunoHost firewall at boot time
os.system('update-rc.d yunohost-firewall enable')
os.system('service yunohost-firewall start')
os.system('touch /etc/yunohost/installed')