create sessions folder in the packae and improve local_config.py

This commit is contained in:
Jérôme Schneider 2013-10-31 11:31:47 +01:00
parent 647ba9361c
commit 357ad4730e
3 changed files with 10 additions and 8 deletions

View File

@ -1,8 +1,4 @@
import logging
import os
_PROJECT_PATH = os.path.join(os.path.dirname(__file__), '..')
## Virtual hosts configuration
hosts = {
@ -14,7 +10,10 @@ hosts = {
],
}
## Database configuration
## SQL Backend config
# http://docs.sqlalchemy.org/en/rel_0_7/core/engines.html
# rfc 1738 https://tools.ietf.org/html/rfc1738
# dialect+driver://username:password@host:port/database
db_url = 'sqlite:///var/lib/mandaye-cam/cam.db'
## Logging configuration
@ -23,10 +22,12 @@ log_file = '/var/log/mandaye-cam/mandaye.log'
log_level = logging.INFO
## PATH
# Data directory
data_dir = '/var/lib/mandaye-cam/data'
# Static url
static_url = '/static'
# Static folder
static_root = '/usr/share/mandaye-cam/static'
# Data directory
data_dir = '/var/lib/mandaye-cam/data'
## Email notification configuration
email_notification = True

View File

@ -28,7 +28,7 @@ case "$1" in
echo -n "Fixing permissions.."
chown $USER:$GROUP /var/lib/$NAME /var/run/$NAME /var/log/$NAME
chown $USER:$GROUP /var/lib/$NAME/data
chown $USER:$GROUP /var/lib/$NAME/data /var/lib/$NAME/sessions
echo "..done"
if [ -z "$2" ]; then

1
rules
View File

@ -12,6 +12,7 @@ override_dh_install:
done
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam/data
install -d -m 0755 $(BUILD_DIR)/var/lib/mandaye-cam/sessions
install -d -m 0755 $(BUILD_DIR)/var/run/mandaye-cam
install -d -m 0755 $(BUILD_DIR)/var/log/mandaye-cam
install -d -m 0755 $(BUILD_DIR)/usr/share/mandaye-cam