a shell script that prepares a directory for MediaWiki-Vagrant.
the script is intended to prepare a directory for use with MediaWiki-Vagrant. using config values in bin/config.sh it will:
- clone vagrant into PROJECT_DIR/vagrant
- if needed, add VAGRANT_BOX_NAME to the available Vagrant boxes
- clone or git pull mediawiki core into MW_CORE_DIR/core
- copy MW_CORE_DIR/core into PROJECT_DIR/vagrant/mediawiki
- update PROJECT_DIR/vagrant/puppet submodules
- setup PROJECT_DIR/vagrant
-
create a directory for your project
mkdir /path/to/your/project
-
clone the repo into that directory
git clone -o github https://github.com/dan-nl/mw-vagrant-prep.git /path/to/your/project
cd /path/to/your/project
-
copy the
bin/config.sample.sh
file toconfig.sh
.cp bin/config.sample.sh bin/config.sh
-
alter the
bin/config.sh
contents as appropriate. -
run the script.
./prep-mw-vagrant.sh