diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2024-08-29 17:46:14 +0200 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2024-08-29 21:53:35 +0200 |
commit | f005928d63165d28b32851f04f29055a4d0cdad5 (patch) | |
tree | 5386f28a558046dbe6e93b439f5e026441224c56 /config.h | |
parent | 4be89075c5bb5793f8c79da8f8df1accc1f0168f (diff) |
get data dir from env variable
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -32,15 +32,6 @@ #define CONFIG_H /* - * The directory that will be browseable through vault. The vault process - * should have full read/write access to this folder and any subfolders and - * files. - */ -#ifndef DATA_DIR -#define DATA_DIR "/vault-data" -#endif - -/* * The log file. The vault process needs write permissions to this file, * otherwise it will quit with an error. */ @@ -53,4 +44,12 @@ #define TEMPLATE_DIR "/usr/share/vault/template" #endif +/* + * The directory that will be browseable through vault. It is read from the env + * variable VAULT_DATA_DIR. The vault process should have full read/write + * access to this folder and any subfolders and files. + */ +char * +config_data_dir(); + #endif /* CONFIG_H */ |