feat: SaaS, system update as a service

This commit is contained in:
Rudra Saraswat 2024-02-09 20:59:43 +05:30
parent afd6cbb149
commit 92e34c28cc
2 changed files with 10 additions and 2 deletions

View file

@ -402,8 +402,6 @@ def daemon():
if dir.startswith('.old.'):
exec('rm', '-rf', '/' + dir)
Event.wait()
description = f'''
{colors.bold}{colors.fg.cyan}usage:{colors.reset}

View file

@ -0,0 +1,10 @@
[Unit]
Description=Update system
[Service]
Type=simple
ExecStart=/usr/bin/akshara update
User=root
[Install]
WantedBy=multi-user.target