termux-packages/packages/below/below-config-src-lib.rs.patch

16 lines
590 B
Diff
Raw Normal View History

2022-03-24 22:10:33 +01:00
--- a/below/config/src/lib.rs
+++ b/below/config/src/lib.rs
@@ -22,9 +22,9 @@
#[cfg(test)]
mod test;
-pub const BELOW_DEFAULT_CONF: &str = "/etc/below/below.conf";
-const BELOW_DEFAULT_LOG: &str = "/var/log/below";
-const BELOW_DEFAULT_STORE: &str = "/var/log/below/store";
+pub const BELOW_DEFAULT_CONF: &str = "@TERMUX_PREFIX@/etc/below/below.conf";
+const BELOW_DEFAULT_LOG: &str = "@TERMUX_PREFIX@/var/log/below";
+const BELOW_DEFAULT_STORE: &str = "@TERMUX_PREFIX@/var/log/below/store";
/// Global below config
pub static BELOW_CONFIG: OnceCell<BelowConfig> = OnceCell::new();