summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-08-29 17:46:14 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-08-29 21:53:35 +0200
commitf005928d63165d28b32851f04f29055a4d0cdad5 (patch)
tree5386f28a558046dbe6e93b439f5e026441224c56 /config.h
parent4be89075c5bb5793f8c79da8f8df1accc1f0168f (diff)
get data dir from env variable
Diffstat (limited to 'config.h')
-rw-r--r--config.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/config.h b/config.h
index 3f58258..edb494b 100644
--- a/config.h
+++ b/config.h
@@ -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 */