[deb] Enable yunohost-firewall on service restart at postinst

This commit is contained in:
Jérôme Lebleu 2016-04-09 17:35:27 +02:00
parent 85d9acdfd0
commit 3b70601254

2
debian/postinst vendored
View file

@ -36,7 +36,7 @@ restart_yunohost_firewall() {
fi
if [ -x /etc/init.d/yunohost-firewall ]; then
update-rc.d yunohost-firewall defaults >/dev/null
update-rc.d yunohost-firewall enable >/dev/null
if [ -n "$2" ]; then
invoke-rc.d yunohost-firewall restart >/dev/null || exit $?
fi