Apply fixes by @tomas-kucera

Co-Authored-By: Katzman <tku@centrum.cz>
This commit is contained in:
Spitap
2022-12-27 19:17:13 +01:00
parent 6b4302b566
commit af9d8c2849
4 changed files with 17 additions and 13 deletions

5
run.py
View File

@@ -238,7 +238,10 @@ def main(input_args):
ssl_backend.generate_cert()
for appname in PRIMARY_APPS:
scripts.install(appname, config, args.upgrade, args.restore)
system.restart_service("cron")
if package.backend.FORMAT == "deb":
system.restart_service("cron")
else:
system.restart_service("crond")
package.backend.restore_system()
if not args.restore:
utils.success(