mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
firewalld has no problem retrieving service information for just-installed files, it only fails when adding/removing those services to zones. A reload is needed before those services can be used. Don't perform firewalld reload during setup.py or debian/postinst. Instead reload when firewalld throws an error that it does not know a service. This approach is more minimally intrusive and does not run reload operations when no services need to be loaded, during Debian package building etc. Closes: #376. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>