From fadc8e0177f5f28d826b260c879603e74f422568 Mon Sep 17 00:00:00 2001 From: Alexey Kotlyarov Date: Wed, 9 Oct 2024 14:10:36 +1100 Subject: [PATCH] fix: start services right away when enabling --- mybox/package/system.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mybox/package/system.py b/mybox/package/system.py index 36ac137..1771522 100644 --- a/mybox/package/system.py +++ b/mybox/package/system.py @@ -49,9 +49,10 @@ async def local_version(self) -> Optional[str]: async def postinstall_linux(self): if self.services: - await self.driver.with_root(True).run("systemctl", "daemon-reload") + driver = self.driver.with_root(True) + await driver.run("systemctl", "daemon-reload") for service in self.services: - await self.driver.with_root(True).run("systemctl", "enable", service) + await driver.run("systemctl", "enable", "--now", service) async def postinstall_macos(self): pass