diff --git a/sahana-demo/setup.sh b/sahana-demo/setup.sh index 384a8ea..e364739 100755 --- a/sahana-demo/setup.sh +++ b/sahana-demo/setup.sh @@ -29,7 +29,7 @@ vmmgr update-login sahana-demo "${SAHANADEMO_ADMIN_USER}" "${SAHANADEMO_ADMIN_PW sed -i "s/default/${TEMPLATE}/g" /var/lib/lxc/sahana-demo/config # Populate database -lxc-execute -u 8001 -g 8001 sahana -- sh -c 'cd /srv/web2py; cp /tmp/masterUsers.csv applications/eden/modules/templates/default/users/masterUsers.csv; ./web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py' +lxc-execute -u 8001 -g 8001 sahana-demo -- sh -c 'cd /srv/web2py; cp /tmp/masterUsers.csv applications/eden/modules/templates/default/users/masterUsers.csv; ./web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py' rm /var/lib/lxc/sahana/sahana/tmp/masterUsers.csv # Install service diff --git a/sambro/setup.sh b/sambro/setup.sh index 0dcc639..cb9d369 100755 --- a/sambro/setup.sh +++ b/sambro/setup.sh @@ -27,7 +27,7 @@ cp ${SOURCE_DIR}/srv/sambro/data/SAMBRO/config.py /srv/sambro/data/SAMBRO/config vmmgr update-login sambro "${SAMBRO_ADMIN_USER}" "${SAMBRO_ADMIN_PWD}" # Populate database -lxc-execute -u 8001 -g 8001 sahana -- sh -c 'cd /srv/web2py; cp /tmp/masterUsers.csv applications/eden/modules/templates/default/users/masterUsers.csv; ./web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py' +lxc-execute -u 8001 -g 8001 sambro -- sh -c 'cd /srv/web2py; cp /tmp/masterUsers.csv applications/eden/modules/templates/default/users/masterUsers.csv; ./web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py' rm /var/lib/lxc/sahana/sahana/tmp/masterUsers.csv # Set "production values" (increases performance) only if the DEBUG environment variable is not set