jenkins-bot has submitted this change and it was merged.

Change subject: mw-apply-settings: clear out log directories
......................................................................


mw-apply-settings: clear out log directories

MediaWiki appends to log files, so we ended up archiving debug log files
for all the previous run.  Delete and recreate the whole directory to
start again from scratch.

Change-Id: I454e544cf717d9eebe94447fae732cbe461e94d4
---
M bin/mw-apply-settings.sh
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Hashar: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/bin/mw-apply-settings.sh b/bin/mw-apply-settings.sh
index c205a1c..6358275 100755
--- a/bin/mw-apply-settings.sh
+++ b/bin/mw-apply-settings.sh
@@ -7,8 +7,11 @@
 
 php "$MEDIAWIKI_D/_join.php" >> "$LOCAL_SETTINGS"
 
-# Copy under /log for archival purposes
+# Empty out the logs directory
+rm -fR "$LOG_DIR"
 mkdir -p "$LOG_DIR"
+
+# Copy LocalSettings under /log for archival purposes
 cp "$LOCAL_SETTINGS" "$LOG_DIR"
 
 echo "Making sure $LOCAL_SETTINGS is still valid"

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I454e544cf717d9eebe94447fae732cbe461e94d4
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins
Gerrit-Branch: master
Gerrit-Owner: Hashar <has...@free.fr>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to