Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gbirke
Created February 19, 2018 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbirke/9f774dbd8e0d0ce1cf993cf5e7a65de3 to your computer and use it in GitHub Desktop.
Save gbirke/9f774dbd8e0d0ce1cf993cf5e7a65de3 to your computer and use it in GitHub Desktop.
Update a mediawiki installation from git repositories
#!/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