From 7784a815a3aa61489c17e1f2969fd47d627dd48f Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 20 Aug 2018 13:23:36 +0200 Subject: [PATCH] Mount sahana-demo default template for database population --- sahana-demo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sahana-demo.sh b/sahana-demo.sh index 32d04c0..945b1c5 100755 --- a/sahana-demo.sh +++ b/sahana-demo.sh @@ -33,7 +33,7 @@ envsubst <${SOURCE_DIR}/masterUsers.csv >/tmp/masterUsers.csv spotter-appmgr update-login sahana-demo "${SAHANADEMO_ADMIN_USER}" "${SAHANADEMO_ADMIN_PWD}" # Populate database -docker run --rm -h sahana-demo --link postgres -v /srv/sahana-demo/conf:/srv/web2py/applications/eden/models -v /srv/sahana-demo/data/databases:/srv/web2py/applications/eden/databases -v /tmp/masterUsers.csv:/srv/web2py/applications/eden/modules/templates/default/users/masterUsers.csv sahana su - sahana -c "./web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py" +docker run --rm -h sahana-demo --link postgres -v /srv/sahana-demo/conf:/srv/web2py/applications/eden/models -v /srv/sahana-demo/data/${TEMPLATE}:/srv/web2py/applications/eden/modules/templates/${TEMPLATE} -v /srv/sahana-demo/data/databases:/srv/web2py/applications/eden/databases -v /tmp/masterUsers.csv:/srv/web2py/applications/eden/modules/templates/default/users/masterUsers.csv sahana su - sahana -c "./web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py" rm /tmp/masterUsers.csv # Stop services required for build