Update web2py and hackfix SAMBRO installation
This commit is contained in:
parent
44209ddfb3
commit
d7d89b9db6
@ -103,10 +103,10 @@ settings.mail.server = "host:25"
|
||||
#settings.mail.tls = True
|
||||
#settings.mail.login = "username:password"
|
||||
# From Address - until this is set, no mails can be sent
|
||||
settings.mail.sender = "admin@example.com"
|
||||
settings.mail.sender = "${SAHANADEMO_ADMIN_USER}"
|
||||
# Default email address to which requests to approve new user accounts gets sent
|
||||
# This can be overridden for specific domains/organisations via the auth_domain table
|
||||
settings.mail.approver = "admin@example.com"
|
||||
settings.mail.approver = "${SAHANADEMO_ADMIN_USER}"
|
||||
# Daily Limit on Sending of emails
|
||||
#settings.mail.limit = 1000
|
||||
|
||||
|
@ -103,10 +103,10 @@ settings.mail.server = "host:25"
|
||||
#settings.mail.tls = True
|
||||
#settings.mail.login = "username:password"
|
||||
# From Address - until this is set, no mails can be sent
|
||||
settings.mail.sender = "admin@example.com"
|
||||
settings.mail.sender = "${SAHANA_ADMIN_USER}"
|
||||
# Default email address to which requests to approve new user accounts gets sent
|
||||
# This can be overridden for specific domains/organisations via the auth_domain table
|
||||
settings.mail.approver = "admin@example.com"
|
||||
settings.mail.approver = "${SAHANA_ADMIN_USER}"
|
||||
# Daily Limit on Sending of emails
|
||||
#settings.mail.limit = 1000
|
||||
|
||||
|
@ -13,12 +13,9 @@ RUN EOF
|
||||
|
||||
# Install web2py
|
||||
git clone --recursive https://github.com/web2py/web2py.git /srv/web2py
|
||||
git -C /srv/web2py checkout 6128d03
|
||||
git -C /srv/web2py checkout 59700b8
|
||||
git -C /srv/web2py submodule update
|
||||
|
||||
# Fix Web2py urllib import (https://github.com/web2py/pydal/commit/9d2290c)
|
||||
sed -i 's/import traceback/import traceback\nimport urllib/' /srv/web2py/gluon/packages/dal/pydal/base.py
|
||||
|
||||
# Symlink WSGI handler
|
||||
ln -s /srv/web2py/handlers/wsgihandler.py /srv/web2py/wsgihandler.py
|
||||
|
||||
|
@ -18,7 +18,6 @@ envsubst <createdb.sql | lxc-attach -u 5432 -g 5432 sambro-postgres -- psql
|
||||
|
||||
# Prepare persistent directory structure
|
||||
mkdir -p /srv/sambro/sahana_data/databases /srv/sambro/sahana_data/uploads
|
||||
chown -R 108080:108080 /srv/sambro/sahana_data
|
||||
lxchelper extract sambro /srv/web2py/applications/eden/models /srv/sambro/sahana_conf
|
||||
lxchelper extract sambro /srv/web2py/applications/eden/modules/templates/SAMBRO /srv/sambro/sahana_data/SAMBRO
|
||||
|
||||
@ -33,6 +32,8 @@ envsubst <sahana_conf/000_config.py >/srv/sambro/sahana_conf/000_config.py
|
||||
#chown -R 8080:8080 /var/lib/lxc/sambro/sambro/srv/web2py
|
||||
cp sahana_conf/00_settings.py /srv/sambro/sahana_conf/00_settings.py
|
||||
cp sahana_data/SAMBRO/config.py /srv/sambro/sahana_data/SAMBRO/config.py
|
||||
# Hackfix for https://github.com/sahana/eden/issues/1530
|
||||
echo 'CANARY_UPDATE_CHECK_ID = 4' >/srv/sambro/sahana_conf/0000_update_check.py
|
||||
chown -R 108080:108080 /srv/sambro/sahana_conf /srv/sambro/sahana_data
|
||||
|
||||
# Populate database
|
||||
|
@ -103,10 +103,10 @@ settings.mail.server = "host:25"
|
||||
#settings.mail.tls = True
|
||||
#settings.mail.login = "username:password"
|
||||
# From Address - until this is set, no mails can be sent
|
||||
settings.mail.sender = "admin@example.com"
|
||||
settings.mail.sender = "${SAMBRO_ADMIN_USER}"
|
||||
# Default email address to which requests to approve new user accounts gets sent
|
||||
# This can be overridden for specific domains/organisations via the auth_domain table
|
||||
settings.mail.approver = "admin@example.com"
|
||||
settings.mail.approver = "${SAMBRO_ADMIN_USER}"
|
||||
# Daily Limit on Sending of emails
|
||||
#settings.mail.limit = 1000
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user