diff --git a/plinth/modules/ikiwiki/__init__.py b/plinth/modules/ikiwiki/__init__.py index a38e85567..6883ca41d 100644 --- a/plinth/modules/ikiwiki/__init__.py +++ b/plinth/modules/ikiwiki/__init__.py @@ -58,8 +58,6 @@ class IkiwikiApp(app_module.App): 'ikiwiki:index', parent_url_name='apps') self.add(menu_item) - self.refresh_sites() - packages = Packages('packages-ikiwiki', [ 'ikiwiki', 'libdigest-sha-perl', 'libxml-writer-perl', 'xapian-omega', 'libsearch-xapian-perl', 'libimage-magick-perl' @@ -83,6 +81,10 @@ class IkiwikiApp(app_module.App): **manifest.backup) self.add(backup_restore) + def post_init(self): + """Perform post initialization operations.""" + self.refresh_sites() + def add_shortcut(self, site, title): """Add an ikiwiki shortcut to frontpage.""" shortcut = frontpage.Shortcut('shortcut-ikiwiki-' + site, title,