fix(config): update package installation command and add load balancer setup script
Update the package installation command to use the Opnsense firmware install script. Add a call to the HAProxy setup script during the load balancer configuration process. This script is intended to copy the staging configuration to production, though its necessity in this context is uncertain.
This commit is contained in:
@@ -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!("pkg install -y {package_name}"))
|
||||
.exec(&format!("/usr/local/opnsense/scripts/firmware/install.sh {package_name}"))
|
||||
.await?;
|
||||
info!("Installation output {output}");
|
||||
self.reload_config().await?;
|
||||
|
||||
Reference in New Issue
Block a user