]> gitweb.fluxo.info Git - hydra.git/commitdiff
Sync-media: unison: no log file
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 5 Oct 2016 14:50:16 +0000 (11:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 5 Oct 2016 14:50:16 +0000 (11:50 -0300)
doc/todo.rst
share/hydractl/sync-media

index 0f71ad63d901a4e9b21492797e96d762bb9992ef..e064e46ff15295807c1288a6cab3bfdbf670aa5e 100644 (file)
@@ -1,7 +1,6 @@
 TODO
 ====
 
-- sync-media: unison logfile.
 - mass: check if current host is localhost.
 - mount-media: lvm support.
 - import-certs:
index 8b1fc79f4b0f7320900761f6bf55be5439d3eed6..39b1ab3c319708f72d74e03cd7cedfa36dbb1aad 100755 (executable)
@@ -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