Skip to content

dan-nl/mw-vagrant-prep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MediaWiki-Vagrant prep

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

setup

script

note: you may need to run these commands with sudo if your user doesn’t have write permission in the /usr/local directory

  1. clone this project into a directory where you like to store applications; e.g. /usr/local/opt
  2. add execute permissions to the prep-mw-vagrant.sh file
  3. symlink to that file in the /usr/local/bin directory
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

config

  1. copy the config.sample.sh file to config.sh.
  2. alter the config.sh contents 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.sh

use

prep-mw-vagrant

About

a shell script that prepares a directory for MediaWiki-Vagrant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages