Make Sahana errors and sessions persistent

This commit is contained in:
Disassembler 2020-05-04 11:06:50 +02:00
parent b1ff00e36b
commit 837466742e
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
10 changed files with 20 additions and 0 deletions

View File

@ -16,6 +16,8 @@
"safire/sahana_conf": "srv/web2py/applications/eden/models",
"safire/sahana_data/SAFIRE": "srv/web2py/applications/eden/modules/templates/SAFIRE",
"safire/sahana_data/databases": "srv/web2py/applications/eden/databases",
"safire/sahana_data/errors": "srv/web2py/applications/eden/errors",
"safire/sahana_data/sessions": "srv/web2py/applications/eden/sessions",
"safire/sahana_data/uploads": "srv/web2py/applications/eden/uploads",
"safire/sahana_data/masterUsers.csv": "srv/web2py/applications/eden/modules/templates/default/users/masterUsers.csv:file"
}

View File

@ -22,6 +22,8 @@ envsubst <createdb.sql | spoc-container exec safire-postgres -- psql
# Prepare persistent directory structure
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/databases
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/errors
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/sessions
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/uploads
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/models ${SAHANA_CONF}
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/modules/templates/SAFIRE ${SAHANA_DATA}/SAFIRE

View File

@ -16,6 +16,8 @@
"sahana-demo/sahana_conf": "srv/web2py/applications/eden/models",
"sahana-demo/sahana_data/default": "srv/web2py/applications/eden/modules/templates/default",
"sahana-demo/sahana_data/databases": "srv/web2py/applications/eden/databases",
"sahana-demo/sahana_data/errors": "srv/web2py/applications/eden/errors",
"sahana-demo/sahana_data/sessions": "srv/web2py/applications/eden/sessions",
"sahana-demo/sahana_data/uploads": "srv/web2py/applications/eden/uploads"
}
},

View File

@ -21,6 +21,8 @@ envsubst <createdb.sql | spoc-container exec sahana-demo-postgres -- psql
# Prepare persistent directory structure
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/databases
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/errors
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/sessions
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/uploads
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/models ${SAHANA_CONF}
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/modules/templates/default ${SAHANA_DATA}/default

View File

@ -16,6 +16,8 @@
"sahana/sahana_conf": "srv/web2py/applications/eden/models",
"sahana/sahana_data/Spotter": "srv/web2py/applications/eden/modules/templates/Spotter",
"sahana/sahana_data/databases": "srv/web2py/applications/eden/databases",
"sahana/sahana_data/errors": "srv/web2py/applications/eden/errors",
"sahana/sahana_data/sessions": "srv/web2py/applications/eden/sessions",
"sahana/sahana_data/uploads": "srv/web2py/applications/eden/uploads"
}
},

View File

@ -22,6 +22,8 @@ envsubst <createdb.sql | spoc-container exec sahana-postgres -- psql
# Prepare persistent directory structure
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/databases
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/errors
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/sessions
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/uploads
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/models ${SAHANA_CONF}

View File

@ -16,6 +16,8 @@
"sambro/sahana_conf": "srv/web2py/applications/eden/models",
"sambro/sahana_data/SAMBRO": "srv/web2py/applications/eden/modules/templates/SAMBRO",
"sambro/sahana_data/databases": "srv/web2py/applications/eden/databases",
"sambro/sahana_data/errors": "srv/web2py/applications/eden/errors",
"sambro/sahana_data/sessions": "srv/web2py/applications/eden/sessions",
"sambro/sahana_data/uploads": "srv/web2py/applications/eden/uploads",
"sambro/sahana_data/masterUsers.csv": "srv/web2py/applications/eden/modules/templates/default/users/masterUsers.csv:file"
}

View File

@ -22,6 +22,8 @@ envsubst <createdb.sql | spoc-container exec sambro-postgres -- psql
# Prepare persistent directory structure
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/databases
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/errors
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/sessions
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/uploads
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/models ${SAHANA_CONF}
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/modules/templates/SAMBRO ${SAHANA_DATA}/SAMBRO

View File

@ -16,6 +16,8 @@
"share/sahana_conf": "srv/web2py/applications/eden/models",
"share/sahana_data/SHARE": "srv/web2py/applications/eden/modules/templates/SHARE",
"share/sahana_data/databases": "srv/web2py/applications/eden/databases",
"share/sahana_data/errors": "srv/web2py/applications/eden/errors",
"share/sahana_data/sessions": "srv/web2py/applications/eden/sessions",
"share/sahana_data/uploads": "srv/web2py/applications/eden/uploads",
"share/sahana_data/masterUsers.csv": "srv/web2py/applications/eden/modules/templates/default/users/masterUsers.csv:file"
}

View File

@ -22,6 +22,8 @@ envsubst <createdb.sql | spoc-container exec share-postgres -- psql
# Prepare persistent directory structure
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/databases
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/errors
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/sessions
install -o 108080 -g 108080 -m 750 -d ${SAHANA_DATA}/uploads
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/models ${SAHANA_CONF}
cp -rp ${SAHANA_LAYER}/srv/web2py/applications/eden/modules/templates/SHARE ${SAHANA_DATA}/SHARE