ArielGlenn has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/363383 )

Change subject: clean up perms and temp files during kiwix rsync
......................................................................

clean up perms and temp files during kiwix rsync

Change-Id: Ic459a4a0458204ed593b74adc729bfc85b5c66cf
---
M modules/dataset/files/kiwix-rsync-cron.sh
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/83/363383/1

diff --git a/modules/dataset/files/kiwix-rsync-cron.sh 
b/modules/dataset/files/kiwix-rsync-cron.sh
index 80917fc..b47cd32 100644
--- a/modules/dataset/files/kiwix-rsync-cron.sh
+++ b/modules/dataset/files/kiwix-rsync-cron.sh
@@ -14,8 +14,9 @@
         # filter out messages of the type
         #   file has vanished: 
"/zim/wikipedia/.wikipedia_tg_all_nopic_2016-05.zim.TQH5Zv" (in 
download.kiwix.org)
         #   rsync warning: some files vanished before they could be 
transferred (code 24) at main.c(1655) [generator=3.1.1]
-        /usr/bin/rsync -rlptq "$bwlimit" "${sourcehost}::${srcpath}" 
"${destroot}/${destpath}" 2>&1 | grep -v 'vanished'
+        /usr/bin/rsync -rlptq --delete "$bwlimit" "${sourcehost}::${srcpath}" 
"${destroot}/${destpath}" 2>&1 | grep -v 'vanished'
     fi
 }
 
 do_rsync "download.kiwix.org/zim/wikipedia/" "kiwix/zim/wikipedia/"
+chown -R datasets:datasets "${destroot}/${destpath}"

-- 
To view, visit https://gerrit.wikimedia.org/r/363383
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic459a4a0458204ed593b74adc729bfc85b5c66cf
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: ArielGlenn <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to