diff options
| author | Omar Rizwan <omar@omar.website> | 2022-10-30 19:38:01 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2022-10-30 19:38:01 +0000 |
| commit | a30ec9f2b5d6ea7db49f6dbb4bdefe04ff591d6e (patch) | |
| tree | 887e94d84f28c2142fd68b67314541c3456eed92 | |
| parent | Manage laptop->Pi using systemctl service (diff) | |
| download | folk-a30ec9f2b5d6ea7db49f6dbb4bdefe04ff591d6e.tar.gz folk-a30ec9f2b5d6ea7db49f6dbb4bdefe04ff591d6e.zip | |
Forgot to include sudo
| -rw-r--r-- | laptop.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ if {[catch { # TODO: forward entry point # TODO: handle rsync strict host key failure catch {exec rsync --timeout=1 -e "ssh -o StrictHostKeyChecking=no" -a . folk@$::shareNode:~/folk-rsync} - exec ssh -o StrictHostKeyChecking=no folk@$::shareNode -- systemctl restart folk >@stdout & + exec ssh -o StrictHostKeyChecking=no folk@$::shareNode -- sudo systemctl restart folk >@stdout & } err]} { puts "error running on Pi: $err" unset ::shareNode |
