From a30ec9f2b5d6ea7db49f6dbb4bdefe04ff591d6e Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Sun, 30 Oct 2022 15:38:01 -0400 Subject: Forgot to include sudo --- laptop.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laptop.tcl b/laptop.tcl index 52dfdab1..d697d7de 100644 --- a/laptop.tcl +++ b/laptop.tcl @@ -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 -- cgit v1.2.3