]> git.proxmox.com Git - proxmox-backup.git/blob - src/buildcfg.rs
do_verification_job: fix "never-reverify" and refactor/comment
[proxmox-backup.git] / src / buildcfg.rs
1 //! Exports configuration data from the build system
2
3 /// The configured configuration directory
4 pub const CONFIGDIR: &str = "/etc/proxmox-backup";
5 pub const JS_DIR: &str = "/usr/share/javascript/proxmox-backup";
6
7 pub const API_ACCESS_LOG_FN: &str = "/var/log/proxmox-backup/api/access.log";
8
9 /// Prepend configuration directory to a file name
10 ///
11 /// This is a simply way to get the full path for configuration files.
12 /// #### Example:
13 /// ```
14 /// # #[macro_use] extern crate proxmox_backup;
15 /// let cert_path = configdir!("/proxy.pfx");
16 /// ```
17 #[macro_export]
18 macro_rules! configdir {
19 ($subdir:expr) => (concat!("/etc/proxmox-backup", $subdir))
20 }