From ba12976d1afdbfe0e53a7dbac598963c0ff64d19 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 9 Oct 2014 19:14:59 -0500 Subject: [PATCH] Give a user a mediagoblin.ini if they don't have one --- lazystarter.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.25.1