]>
Commit | Line | Data |
---|---|---|
99be8844 DM |
1 | //! Exports configuration data from the build system |
2 | ||
3 | /// The configured configuration directory | |
653b1ca1 | 4 | pub const CONFIGDIR: &str = "/etc/proxmox-backup"; |
4a7de56e | 5 | pub const JS_DIR: &str = "/usr/share/javascript/proxmox-backup"; |
9f4962d3 | 6 | |
99be8844 DM |
7 | /// Prepend configuration directory to a file name |
8 | /// | |
9 | /// This is a simply way to get the full path for configuration files. | |
10 | /// #### Example: | |
11 | /// ``` | |
12 | /// # #[macro_use] extern crate proxmox_backup; | |
13 | /// let cert_path = configdir!("/proxy.pfx"); | |
14 | /// ``` | |
9f4962d3 WB |
15 | #[macro_export] |
16 | macro_rules! configdir { | |
4a7de56e | 17 | ($subdir:expr) => (concat!("/etc/proxmox-backup", $subdir)) |
9f4962d3 | 18 | } |