Skip to content

Instantly share code, notes, and snippets.

@ahkok
Created October 12, 2018 23:52
Show Gist options
  • Select an option

  • Save ahkok/eab0b4ecca4b9623182544b74f45da0d to your computer and use it in GitHub Desktop.

Select an option

Save ahkok/eab0b4ecca4b9623182544b74f45da0d to your computer and use it in GitHub Desktop.
diff --git a/swupd-client-3.18.1/src/autoupdate.c b/swupd-client-3.18.1/src/autoupdate.c
index 3fac775..6934307 100644
--- a/swupd-client-3.18.1/src/autoupdate.c
+++ b/swupd-client-3.18.1/src/autoupdate.c
@@ -101,7 +101,7 @@ int autoupdate_main(int argc, char **argv)
check_root();
fprintf(stderr, "Running systemctl to enable updates\n");
rc = system("/usr/bin/systemctl unmask --now swupd-update.service swupd-update.timer"
- " && /usr/bin/systemctl start swupd-update.timer > /dev/null");
+ " && /usr/bin/systemctl restart swupd-update.timer > /dev/null");
if (rc != -1) {
rc = WEXITSTATUS(rc);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment