MediaWikiをアップデートする方法メモ

MediaWiki のアップデート、たまにしかやらないしちょっと面倒なのでメモ
メモなので多分完成しないと思います…

Sponsored Link

MediaWiki 本体のインストール

そのうち…

拡張機能の導入

コピペして Wiki_install.sh のようなファイル名で保存し、./Wiki_install.sh ( Wiki をインストールしたフォルダ 例:/var/www/wiki/) ( MediaWiki のブランチ 1.33 なら REL1_33) みたいに実行すると拡張機能が自動でインストールされ、自動でアップデートスクリプトが実行されます

cd $1
cd skins/
git clone -b $2 https://github.com/wikimedia/mediawiki-skins-MinervaNeue.git
cd ../extensions
git clone https://github.com/nbdd0121/MW-Avatar.git Avatar
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-CharInsert.git CharInsert
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-CheckUser.git CheckUser
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-ContributionScores.git ContributionScores
git clone -b $2  https://github.com/wikimedia/mediawiki-extensions-CreateRedirect.git CreateRedirect
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-CSS.git CSS
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-DisplayTitle.git DisplayTitle
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-Echo.git Echo
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-Editcount.git Editcount
git clone https://github.com/cmln/mw-font-awesome.git FontAwesome
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-googleAnalytics.git googleAnalytics
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-HitCounters.git HitCounters
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-HTMLets.git HTMLets
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-intersection.git intersection
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-LastModified.git LastModified
git clone https://github.com/rotsee/LinkAttributes.git
git clone https://github.com/bovender/LinkTitles.git LinkTitles
git clone https://github.com/rotsee/LinkAttributes.git
git clone https://github.com/bovender/LinkTitles.git
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-MobileDetect.git MobileDetect
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-MobileFrontend.git MobileFrontend
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-MsUpload.git MsUpload
git clone https://github.com/p12tic/NativeSvgHandler.git
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-OpenGraphMeta.git OpenGraphMeta
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-Scribunto.git Scribunto
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-TemplateData.git TemplateData
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-Thanks.git Thanks
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-TimedMediaHandler.git TimedMediaHandler
cd TimedMediaHandler
apt -y install composer
composer install --no-dev
cd ../
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-TopTenPages.git TopTenPages
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-TweetANew.git TweetANew
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-UserMerge.git UserMerge
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-VisualEditor.git VisualEditor
cd VisualEditor
git submodule update --init
cd ../
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-Widgets.git Widgets
cd Widgets
composer install --no-dev
cd ../
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-WikiTextLoggedInOut.git WikiTextLoggedInOut
git clone https://github.com/wikimedia/mediawiki-extensions-WikiSEO.git WikiSEO
git clone -b $2 https://github.com/wikimedia/mediawiki-extensions-YouTube.git YouTube
cd ../
php maintenance/update.php

このあと、LocalSettings.php に wfLoadExtension( “FontAwesone” ); のように追記するのを忘れないようにしてください

その他

つづく

Sponsored Link
Sponsored Link
Web
tsukumiをフォローする
Sponsored Link
つくみ島だより

コメント