#!/bin/sh set -e if [ "$*" != "" ]; then exec $@ fi echo "Starting Sahana Eden..." # Create admin user CSV template cat </srv/web2py/applications/eden/modules/templates/default/users/masterUsers.csv First Name,Last Name,Email,Password,Role,Organisation Admin,User,${SAHANA_ADMIN_USER},${SAHANA_ADMIN_PASSWORD},ADMIN, EOF unset SAHANA_ADMIN_USER unset SAHANA_ADMIN_PASSWORD # Populate or upgrade database /usr/local/bin/migrate norestart # Exec into s6 supervisor exec /bin/s6-svscan /etc/services.d