Give a user a mediagoblin.ini if they don't have one
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 10 Oct 2014 00:14:59 +0000 (19:14 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 10 Oct 2014 19:42:17 +0000 (14:42 -0500)
lazystarter.sh

index 6358f47c3cdced0ba541e4afb4cef8e9d82ac7a7..286baeb677cd425988261d64f083cf2c45a9b2fd 100755 (executable)
@@ -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