Alexandros Kosiaris has submitted this change and it was merged. Change subject: Changed date format in l10nupdate-1 ......................................................................
Changed date format in l10nupdate-1 Changed date format in script file as year comes after both the time and the time zone. The script runs LocalisationUpdate's update.php script and then logs to the server admin log. Bug: 52986 Change-Id: I7ec72331bfd3b23515fd9a2f788f485f92ddcfad --- M files/misc/l10nupdate/l10nupdate-1 1 file changed, 8 insertions(+), 8 deletions(-) Approvals: Anomie: Looks good to me, but someone else must approve 01tonythomas: Looks good to me, but someone else must approve Nikerabbit: Looks good to me, but someone else must approve Hashar: Looks good to me, but someone else must approve Alexandros Kosiaris: Verified; Looks good to me, approved jenkins-bot: Checked Dzahn: Looks good to me, but someone else must approve diff --git a/files/misc/l10nupdate/l10nupdate-1 b/files/misc/l10nupdate/l10nupdate-1 index f953728..5ba96bc 100755 --- a/files/misc/l10nupdate/l10nupdate-1 +++ b/files/misc/l10nupdate/l10nupdate-1 @@ -10,7 +10,7 @@ GITREPOS="core extensions" umask 0002 -echo "Starting l10nupdate at `date`." +echo "Starting l10nupdate at `date --rfc-3339=seconds`." # Update i18n messages from git to the HEAD of master, or create the clone if it doesn't exist yet echo "Updating git clone ..." @@ -71,24 +71,24 @@ --all \ --quiet then - echo "Rebuilding localization cache at `date`" + echo "Rebuilding localization cache at `date --rfc-3339=seconds`" /usr/local/bin/mwscript rebuildLocalisationCache.php --wiki="$mwDbName" \ --quiet --outdir=/var/lib/l10nupdate/cache-"$mwVerNum" # Copy the LC files - echo "Completed at `date`. Copying LC files to $MW_COMMON_SOURCE" + echo "Completed at `date --rfc-3339=seconds`. Copying LC files to $MW_COMMON_SOURCE" cp --preserve=timestamps --force /var/lib/l10nupdate/cache-"$mwVerNum"/l10n_cache-* $MW_COMMON_SOURCE/php-"$mwVerNum"/cache/l10n # Include JSON versions of the CDB files and add MD5 files /usr/local/bin/refreshCdbJsonFiles --directory="$MW_COMMON_SOURCE/php-$mwVerNum/cache/l10n" - echo "Syncing to Apaches at `date`" + echo "Syncing to Apaches at `date --rfc-3339=seconds`" SYNC_START=$(date +%s) $BINDIR/sync-l10nupdate-1 "$mwVerNum" SYNC_END=$(date +%s) - $BINDIR/dologmsg "!log LocalisationUpdate completed ($mwVerNum) at `date`" - echo "All done at `date`" + $BINDIR/dologmsg "!log LocalisationUpdate completed ($mwVerNum) at `date --rfc-3339=seconds`" + echo "All done at `date --rfc-3339=seconds`" $BINDIR/deploy2graphite l10nupdate-sync $((SYNC_END-SYNC_START)) else - $BINDIR/dologmsg "!log LocalisationUpdate failed ($mwVerNum) at `date`" + $BINDIR/dologmsg "!log LocalisationUpdate failed ($mwVerNum) at `date --rfc-3339=seconds`" echo "FAILED" fi done @@ -100,4 +100,4 @@ /usr/local/bin/mwscript extensions/WikimediaMaintenance/refreshMessageBlobs.php --wiki="$wiki" done echo "All done" -$BINDIR/dologmsg "!log LocalisationUpdate ResourceLoader cache refresh completed at `date`" +$BINDIR/dologmsg "!log LocalisationUpdate ResourceLoader cache refresh completed at `date --rfc-3339=seconds`" -- To view, visit https://gerrit.wikimedia.org/r/106892 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I7ec72331bfd3b23515fd9a2f788f485f92ddcfad Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Tinaj1234 <tinajohnson.1...@gmail.com> Gerrit-Reviewer: 01tonythomas <01tonytho...@gmail.com> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: Anomie <bjor...@wikimedia.org> Gerrit-Reviewer: Catrope <roan.katt...@gmail.com> Gerrit-Reviewer: Dzahn <dz...@wikimedia.org> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: MZMcBride <w...@mzmcbride.com> Gerrit-Reviewer: Nemo bis <federicol...@tiscali.it> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits