diff --git a/sahana-demo.sh b/sahana-demo.sh index 3ed8b3a..6e22e41 100755 --- a/sahana-demo.sh +++ b/sahana-demo.sh @@ -15,6 +15,7 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql mkdir -p /srv/sahana-demo/conf /srv/sahana-demo/data/databases /srv/sahana-demo/data/uploads chown -R 8001:8001 /srv/sahana-demo/conf /srv/sahana-demo/data docker run --rm -v /srv/sahana-demo/conf:/mnt/conf sahana cp -rp /srv/web2py/applications/eden/models/. /mnt/conf +docker run --rm -v /srv/sambro/data/default:/mnt/data sahana cp -rp /srv/web2py/applications/eden/modules/templates/default/. /mnt/data # Configure Sahana export SAHANADEMO_HMAC=$(head -c 18 /dev/urandom | base64) diff --git a/sahana-demo/etc/init.d/sahana-demo b/sahana-demo/etc/init.d/sahana-demo index 4f53064..e79d24b 100755 --- a/sahana-demo/etc/init.d/sahana-demo +++ b/sahana-demo/etc/init.d/sahana-demo @@ -19,6 +19,7 @@ start() { --link postgres \ -p 127.0.0.1:8098:8001 \ -v /srv/sahana-demo/conf:/srv/web2py/applications/eden/models \ + -v /srv/sambro/data/default:/srv/web2py/applications/eden/modules/templates/default \ -v /srv/sahana-demo/data/databases:/srv/web2py/applications/eden/databases \ -v /srv/sahana-demo/data/uploads:/srv/web2py/applications/eden/uploads \ sahana