aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/sync-tpc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-20 15:36:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-20 15:36:30 -0200
commitafb99b7bf4ca9a30189fc2ba4bffdca23848db6b (patch)
treeca1db7e4f06f6ca71752536b9ba19fd75389a8b1 /share/hydractl/sync-tpc
parenta628ce8d831edf9181e8f71b88426e968cfb90cf (diff)
downloadhydra-afb99b7bf4ca9a30189fc2ba4bffdca23848db6b.tar.gz
hydra-afb99b7bf4ca9a30189fc2ba4bffdca23848db6b.tar.bz2
Log support for sync-{home,tpc}
Diffstat (limited to 'share/hydractl/sync-tpc')
-rwxr-xr-xshare/hydractl/sync-tpc4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc
index a785fb9..971ab53 100755
--- a/share/hydractl/sync-tpc
+++ b/share/hydractl/sync-tpc
@@ -78,3 +78,7 @@ fi
# Sync media remotes
hydractl sync-media-remotes $MEDIA
+
+# Record log
+$SUDO mkdir -p $DEST/var/log/hydra
+echo "`date +%Y%m%d` $BASENAME with data from `cat /etc/hostname`" | $SUDO tee -a $DEST/var/log/hydra/sync-tpc > /dev/null