diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-04-01 15:27:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-04-01 15:27:11 -0300 |
commit | f6e642687a8a93dd0b5c352f008f64ab6e5b9bc7 (patch) | |
tree | e8663d1590940f25535131ef478600a46e54f90c /mediawiki-dl | |
parent | 1842c2d76f1ea01a265ab937ac21686e578a932c (diff) | |
download | downloaders-f6e642687a8a93dd0b5c352f008f64ab6e5b9bc7.tar.gz downloaders-f6e642687a8a93dd0b5c352f008f64ab6e5b9bc7.tar.bz2 |
Fix extension symlinking at mediawiki-dl
Diffstat (limited to 'mediawiki-dl')
-rwxr-xr-x | mediawiki-dl | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/mediawiki-dl b/mediawiki-dl index d6e873c..16384fb 100755 --- a/mediawiki-dl +++ b/mediawiki-dl @@ -29,7 +29,7 @@ function mediawiki_deploy { tar xvf $TARBALL $sudo chown -R root. mediawiki-$VERSION rm $TARBALL* - ln -sf mediawiki-$VERSION mediawiki + $sudo ln -sf mediawiki-$VERSION mediawiki } # Upgrade @@ -48,16 +48,14 @@ function mediawiki_upgrade { # Copy configuration $sudo cp -a mediawiki-$OLD_VERSION/LocalSettings.php mediawiki-$VERSION/ - # Symlink extensions + # Contrib extensions if [ -d "mediawiki-$OLD_VERSION/contrib" ]; then $sudo cp -a mediawiki-$OLD_VERSION/contrib mediawiki-$VERSION/ - for extension in mediawiki-$VERSION/contrib/*; do - if [ -d "mediawiki-$VERSION/contrib/$extension" ]; then - ( - cd mediawiki-$VERSION/extensions - $sudo ln -s ../contrib/$extension - ) + # Symlink extensions + for extension in mediawiki-$OLD_VERSION/extensions/*; do + if [ -h "mediawiki-$OLD_VERSION/extensions/$extension" ]; then + $sudo cp mediawiki-$OLD_VERSION/extensions/$extension mediawiki-$VERSION/extensions/$extension fi done fi |