From fbc8074d2303f5669ad096aa94f152b3e43c15ad Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 16 Apr 2023 23:03:27 +0700 Subject: [PATCH] add reboot --- vestasync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vestasync.py b/vestasync.py index ca6f3d7..4792913 100755 --- a/vestasync.py +++ b/vestasync.py @@ -126,6 +126,8 @@ def create_autogit_systemd(c): c.run("systemctl enable pushgit_inotify.service") c.run("systemctl start pushgit_inotify.service") +def reboot(c): + c.run("reboot > /dev/null 2>&1 || true") def git_clone(c): c.run(f'mkdir /mnt/data/{args.source_hostname}_etc ', hide=True)