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