2019-02-16 11:28:50 +00:00
|
|
|
//! Exports configuration data from the build system
|
|
|
|
|
|
|
|
/// The configured configuration directory
|
2019-09-11 10:06:59 +00:00
|
|
|
pub const CONFIGDIR: &str = "/etc/proxmox-backup";
|
2019-09-09 08:51:08 +00:00
|
|
|
pub const JS_DIR: &str = "/usr/share/javascript/proxmox-backup";
|
2019-02-04 14:13:03 +00:00
|
|
|
|
2020-10-16 09:06:46 +00:00
|
|
|
pub const API_ACCESS_LOG_FN: &str = "/var/log/proxmox-backup/api/access.log";
|
|
|
|
|
2019-02-16 11:28:50 +00:00
|
|
|
/// Prepend configuration directory to a file name
|
|
|
|
///
|
|
|
|
/// This is a simply way to get the full path for configuration files.
|
|
|
|
/// #### Example:
|
|
|
|
/// ```
|
|
|
|
/// # #[macro_use] extern crate proxmox_backup;
|
|
|
|
/// let cert_path = configdir!("/proxy.pfx");
|
|
|
|
/// ```
|
2019-02-04 14:13:03 +00:00
|
|
|
#[macro_export]
|
|
|
|
macro_rules! configdir {
|
2019-09-09 08:51:08 +00:00
|
|
|
($subdir:expr) => (concat!("/etc/proxmox-backup", $subdir))
|
2019-02-04 14:13:03 +00:00
|
|
|
}
|