diff options
Diffstat (limited to 'vagrant_support/bmo-configured')
-rwxr-xr-x | vagrant_support/bmo-configured | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/vagrant_support/bmo-configured b/vagrant_support/bmo-configured deleted file mode 100755 index 4d421577b..000000000 --- a/vagrant_support/bmo-configured +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -if [[ ! -f /vagrant/localconfig ]]; then - echo "missing localconfig" - exit 1 -fi - -if [[ ! -f /vagrant/data/params ]]; then - echo "missing data/params" - exit 1 -fi - -if grep -q "'urlbase' => ''" /vagrant/data/params; then - echo "urlbase not configured" - exit 1; -fi - -if grep -q '$db_host.*localhost' /vagrant/localconfig; then - echo "\$db_host not configured" - exit 1 -fi - -for file in /vagrant/data/params /vagrant/index.cgi; do - info="$(stat -c %U.%G "$file")" - - if [[ $info != "vagrant.apache" ]]; then - echo "wrong file owner: $info $file" - exit 1 - fi -done - -cd /vagrant -sudo -u apache perl -T index.cgi &>/tmp/index.html || exit 1 - -grep -q skin-Dusk /tmp/index.html && exit 1 - -rm /tmp/index.html - -exit 0 |