summaryrefslogtreecommitdiffstats
path: root/vagrant_support/bmo-configured
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-24 21:51:44 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-24 21:51:44 +0200
commit0d714dcec16d9d8760f6656d9be0b29964d51343 (patch)
treeaf2217eddd3e50715aea0f1edaa399239b62705e /vagrant_support/bmo-configured
parent356bfe73b9b25c9cdf86dd9e125f411824db74fc (diff)
downloadbugzilla-0d714dcec16d9d8760f6656d9be0b29964d51343.tar.gz
bugzilla-0d714dcec16d9d8760f6656d9be0b29964d51343.tar.xz
fix some recurring vagrant issues with perms, and copy .git into vm
Diffstat (limited to 'vagrant_support/bmo-configured')
-rwxr-xr-xvagrant_support/bmo-configured39
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