diff --git a/README.md b/README.md index 16c6a78..ef5b850 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,19 @@ Chacun de ces services documente la structure de la table mais ne se charge pas La création de la table, selon le schéma fournit dans la documentation, est à la charge de l’administrateur du système. # Empty database: -su - postgres -psql -U postgres risotto -drop table log; drop table userrole; drop table release; drop table source; drop table server; drop table servermodel; drop table applicationservice; drop table roleuri; drop table risottouser; drop table uri; +```` +psql -U postgres +drop database risotto; +drop user risotto; +\q +reconfigure +``` + +``` psql -U postgres tiramisu drop table value; drop table property; drop table permissive; drop table information; drop table session; +``` # Import EOLE ./script/cucchiaiata source.create -n eole -u http://localhost diff --git a/src/risotto/config.py b/src/risotto/config.py index a0f884c..d6cd782 100644 --- a/src/risotto/config.py +++ b/src/risotto/config.py @@ -3,7 +3,7 @@ from os import environ CONFIGURATION_DIR = environ.get('CONFIGURATION_DIR', '/srv/risotto/configurations') PROVIDER_FACTORY_CONFIG_DIR = environ.get('PROVIDER_FACTORY_CONFIG_DIR', '/srv/factory') -TMP_DIR = 'tmp' +TMP_DIR = '/tmp' DEFAULT_USER = environ.get('DEFAULT_USER', 'Anonymous') RISOTTO_DB_NAME = environ.get('RISOTTO_DB_NAME', 'risotto') RISOTTO_DB_PASSWORD = environ.get('RISOTTO_DB_PASSWORD', 'risotto') @@ -19,7 +19,7 @@ SRV_SEED_PATH = environ.get('SRV_SEED_PATH', '/srv/seed') def dsn_factory(database, user, password, address=DB_ADDRESS): - mangled_address = '/var/run/postgresql' if address == 'localhost' else address + mangled_address = '/var/run/postgresql' if address == 'localhost' else address return f'postgres:///{database}?host={mangled_address}/&user={user}&password={password}'