ArielGlenn has submitted this change and it was merged.

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(-)

Approvals:
  Gehel: Looks good to me, but someone else must approve
  ArielGlenn: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Id157c2d2c425ffb7f9424dc0cf61196590492ad6
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: ArielGlenn <[email protected]>
Gerrit-Reviewer: Gehel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to