Skip to content

Commit

Permalink
Fix reboot command parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmarklloyd committed May 10, 2020
1 parent 41aeae8 commit de10b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func systemHandler(w http.ResponseWriter, req *http.Request) {
case "shutdown":
args = []string{"shutdown", "now"}
fmt.Fprintf(w, "shutting down")
case "update":
case "reboot":
args = []string{"reboot", "now"}
fmt.Fprintf(w, "rebooting")
case "check-updates":
Expand Down
1 change: 1 addition & 0 deletions public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ $(document).ready(function(){
console.log(response)
}
});
alert("Checking for updates, will restart if new version is available.")
});
});
});
Expand Down

0 comments on commit de10b66

Please sign in to comment.