diff --git a/plugins/imail/index.py b/plugins/imail/index.py index 5044fc4ea..c2b4c9fdc 100755 --- a/plugins/imail/index.py +++ b/plugins/imail/index.py @@ -112,7 +112,7 @@ class App: # systemd systemDir = mw.systemdCfgDir() systemService = systemDir + '/imail.service' - systemServiceTpl = getPluginDir() + '/init.d/imail.service.tpl' + systemServiceTpl = self.getPluginDir() + '/init.d/imail.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): service_path = mw.getServerDir() se_content = mw.readFile(systemServiceTpl)