summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
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 */