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_NAMEto the available Vagrant boxes - clone or git pull mediawiki core into
MW_CORE_DIR/core - copy
MW_CORE_DIR/coreintoPROJECT_DIR/vagrant/mediawiki - update
PROJECT_DIR/vagrant/puppetsubmodules - setup
PROJECT_DIR/vagrant
note: you may need to run these commands with sudo if your user doesn’t have write permission in the /usr/local directory
- clone this project into a directory where you like to store applications; e.g.
/usr/local/opt - add execute permissions to the
prep-mw-vagrant.shfile - symlink to that file in the
/usr/local/bindirectory
git clone -o github https://github.com/dan-nl/mw-vagrant-prep.git /usr/local/opt/mw-vagrant-prep
chmod +x /usr/local/opt/mw-vagrant-prep/prep-mw-vagrant.sh
ln -s /usr/local/opt/mw-vagrant-prep/prep-mw-vagrant.sh /usr/local/bin/prep-mw-vagrant- copy the
config.sample.shfile toconfig.sh. - alter the
config.shcontents as necessary.
cp /usr/local/opt/mw-vagrant-prep/bin/config.sample.sh /usr/local/opt/mw-vagrant-prep/bin/config.sh
nano /usr/local/opt/mw-vagrant-prep/bin/config.shprep-mw-vagrant