EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/282415

Change subject: Maintain a current symlink for cirrussearch dumps
......................................................................

Maintain a current symlink for cirrussearch dumps

Create a symlink named 'current' in the cirrus dumps directory which
always points to the most recently completed dump.

Change-Id: Id157c2d2c425ffb7f9424dc0cf61196590492ad6
---
M modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/15/282415/1

diff --git a/modules/snapshot/templates/cron/dumpcirrussearch.sh.erb 
b/modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
index d765e15..3d3a258 100644
--- a/modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
+++ b/modules/snapshot/templates/cron/dumpcirrussearch.sh.erb
@@ -116,3 +116,7 @@
        fi
 done
 
+# Maintain a 'current' symlink always pointing at the most recently completed 
dump
+if [ "$dryrun" == "false" ]; then
+       ln -sf "$targetDir" "$targetDirBase/current"
+fi

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id157c2d2c425ffb7f9424dc0cf61196590492ad6
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to