"Update Harmony Opnsense Configuration"

Improved configuration handling for Harmony Opnsense setup. Implemented changes to opnsense-config module to support various settings, including load balancer configuration and DHCP server settings. This update enhances the overall stability and functionality of the Harmony Opnsense setup process.
This commit is contained in:
jeangab
2025-01-11 13:52:57 -05:00
parent 9e6f22d7ea
commit 1665198e66
9 changed files with 33 additions and 23 deletions

View File

@@ -68,7 +68,7 @@ impl Config {
pub async fn install_package(&mut self, package_name: &str) -> Result<(), Error> {
info!("Installing opnsense package {package_name}");
let output = self.shell
.exec(&format!("/usr/local/opnsense/scripts/firmware/install.sh {package_name}"))
.exec(&format!("/bin/sh -c \"export LOCKFILE=/dev/stdout && /usr/local/opnsense/scripts/firmware/install.sh {package_name}\""))
.await?;
info!("Installation output {output}");
self.reload_config().await?;
@@ -107,7 +107,7 @@ impl Config {
password: &str,
) -> Self {
let config = Arc::new(client::Config {
inactivity_timeout: Some(Duration::from_secs(5)),
inactivity_timeout: None,
..<_>::default()
});