aboutsummaryrefslogtreecommitdiffstats
path: root/bin/install-as-user
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2013-09-23 18:10:55 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2013-09-23 18:10:55 +0100
commitf17aa54e96b8a7319eded3180a61ab4a35000ac1 (patch)
tree640b0764c92104f12c67065ddb90213760ce15a1 /bin/install-as-user
parent34cf74b3d18baa968ea3e45e69ca958e8ebcfaa5 (diff)
Swap installation of perl modules and db creation, should fix #573.
Diffstat (limited to 'bin/install-as-user')
-rwxr-xr-xbin/install-as-user10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/install-as-user b/bin/install-as-user
index 0813a6b70..f8f1d1ee5 100755
--- a/bin/install-as-user
+++ b/bin/install-as-user
@@ -113,6 +113,11 @@ if [ ! -f conf/general.yml ]; then
echo $DONE_MSG
fi
+echo "Installing required Perl modules - this may take some time"
+cd "$REPOSITORY"
+bin/install_perl_modules
+echo $DONE_MSG
+
# Create the database if it doesn't exist:
echo -n "Setting up database... "
if ! psql -l | egrep "^ *$DB_NAME *\|" > /dev/null
@@ -127,11 +132,6 @@ else
fi
echo $DONE_MSG
-echo "Installing required Perl modules - this may take some time"
-cd "$REPOSITORY"
-bin/install_perl_modules
-echo $DONE_MSG
-
# Generate po and mo files (these invocations taken from Kagee's script):
echo "Creating locale .mo files"
bin/cron-wrapper bin/make_po FixMyStreet-EmptyHomes