Created
February 19, 2018 14:54
-
-
Save gbirke/9f774dbd8e0d0ce1cf993cf5e7a65de3 to your computer and use it in GitHub Desktop.
Update a mediawiki installation from git repositories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Updating core" | |
git pull | |
composer update | |
for e in extensions/*; do | |
if [ -d "$e" ]; then | |
cd $e | |
echo "Updating $(pwd)" | |
test -e .git && git pull | |
test -e composer.json && composer update --no-dev | |
cd - | |
fi | |
done | |
for s in skins/*; do | |
if [ -d "$s" ]; then | |
cd $s | |
echo "Updating $(pwd)" | |
test -e .git && git pull | |
test -e composer.json && composer update --no-dev | |
cd - | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment