diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-20 15:36:30 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-20 15:36:30 -0200 |
commit | afb99b7bf4ca9a30189fc2ba4bffdca23848db6b (patch) | |
tree | ca1db7e4f06f6ca71752536b9ba19fd75389a8b1 /share/hydractl/sync-tpc | |
parent | a628ce8d831edf9181e8f71b88426e968cfb90cf (diff) | |
download | hydra-afb99b7bf4ca9a30189fc2ba4bffdca23848db6b.tar.gz hydra-afb99b7bf4ca9a30189fc2ba4bffdca23848db6b.tar.bz2 |
Log support for sync-{home,tpc}
Diffstat (limited to 'share/hydractl/sync-tpc')
-rwxr-xr-x | share/hydractl/sync-tpc | 4 |
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 |