aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-10-09 19:14:59 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-10-10 14:42:17 -0500
commitba12976d1afdbfe0e53a7dbac598963c0ff64d19 (patch)
treebbcdd719035e7a7fe08f586d89012fc8e4962a7d
parent5e73017f3f6422a6d3302c3dea281c0702bd5f1c (diff)
downloadmediagoblin-ba12976d1afdbfe0e53a7dbac598963c0ff64d19.tar.lz
mediagoblin-ba12976d1afdbfe0e53a7dbac598963c0ff64d19.tar.xz
mediagoblin-ba12976d1afdbfe0e53a7dbac598963c0ff64d19.zip
Give a user a mediagoblin.ini if they don't have one
-rwxr-xr-xlazystarter.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/lazystarter.sh b/lazystarter.sh
index 6358f47c..286baeb6 100755
--- a/lazystarter.sh
+++ b/lazystarter.sh
@@ -98,6 +98,14 @@ else
exit 1
fi
+# If the user somehow doesn't have a mediagoblin.ini
+# (maybe they aren't using make) give them one
+if [ -f mediagoblin.example.ini ] && \
+ [ ! -f mediagoblin.ini ]; then
+ echo "No mediagoblin.ini found, making one";
+ cp --no-clobber mediagoblin.example.ini mediagoblin.ini;
+fi
+
set -x
export CELERY_ALWAYS_EAGER=true
case "$selfname" in