aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-10-05 11:50:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-10-05 11:50:16 -0300
commitb0428522c8f4b1c730fc19550b820a0705bcdd21 (patch)
treefb1fe9cda8121e70a79439237c31f9579947cd30
parenteda1865783af10f0eb4e85db7f0685cfcf867bcd (diff)
downloadhydra-b0428522c8f4b1c730fc19550b820a0705bcdd21.tar.gz
hydra-b0428522c8f4b1c730fc19550b820a0705bcdd21.tar.bz2
Sync-media: unison: no log file
-rw-r--r--doc/todo.rst1
-rwxr-xr-xshare/hydractl/sync-media4
2 files changed, 2 insertions, 3 deletions
diff --git a/doc/todo.rst b/doc/todo.rst
index 0f71ad6..e064e46 100644
--- a/doc/todo.rst
+++ b/doc/todo.rst
@@ -1,7 +1,6 @@
TODO
====
-- sync-media: unison logfile.
- mass: check if current host is localhost.
- mount-media: lvm support.
- import-certs:
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index 8b1fc79..39b1ab3 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -237,7 +237,7 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then
# Avoid those configured to be skipped
if [ ! -e "$CACHE/$folder/.sync-media/skip" ]; then
echo "Syncing $CACHE/$folder with $VOLUME/$MEDIA/$folder..."
- unison $CACHE/$folder $VOLUME/$MEDIA/$folder -auto
+ unison $CACHE/$folder $VOLUME/$MEDIA/$folder -auto -logfile /dev/null
# Avoid empty source folders
#if [ ! -z "`ls -1 $CACHE/$folder`" ]; then
@@ -282,7 +282,7 @@ elif [ ! -z "$REMOTE" ]; then
)
else
echo "Syncing $CACHE/$folder with ssh://$REMOTE.$DOMAIN/$CACHE/$folder..."
- unison $CACHE/$folder ssh://$REMOTE.$DOMAIN/$CACHE/$folder/ -auto
+ unison $CACHE/$folder ssh://$REMOTE.$DOMAIN/$CACHE/$folder/ -auto -logfile /dev/null
# Avoid empty source folders or those configured to be skipped
#if [ ! -e "$CACHE/$folder/.sync-media/skip" ] && [ ! -z "`ls -1 $CACHE/$folder`" ]; then