Skip to content

Commit

Permalink
fix: start services right away when enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed Oct 9, 2024
1 parent b5217d4 commit fadc8e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mybox/package/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fadc8e0

Please sign in to comment.