diff --git a/Cargo.lock b/Cargo.lock index 8e34170..a220369 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1916,7 +1916,7 @@ dependencies = [ [[package]] name = "linux-patch-api" -version = "1.1.12" +version = "1.1.13" dependencies = [ "actix", "actix-rt", diff --git a/Cargo.toml b/Cargo.toml index 3a059a2..1e74706 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "linux-patch-api" -version = "1.1.12" +version = "1.1.13" edition = "2021" authors = ["Echo "] description = "Secure remote package management API for Linux systems" diff --git a/src/packages/mod.rs b/src/packages/mod.rs index 27da74b..1332b6f 100644 --- a/src/packages/mod.rs +++ b/src/packages/mod.rs @@ -1180,7 +1180,9 @@ pub fn create_backend() -> Result> { } else if std::path::Path::new("/usr/bin/dnf").exists() { // TODO: Implement DnfBackend for RHEL/CentOS/Fedora Err(anyhow::anyhow!("DNF backend not yet implemented")) - } else if std::path::Path::new("/usr/bin/apk").exists() { + } else if std::path::Path::new("/usr/bin/apk").exists() + || std::path::Path::new("/sbin/apk").exists() + { Ok(Box::new(ApkBackend::new())) } else if std::path::Path::new("/usr/bin/pacman").exists() { // TODO: Implement PacmanBackend for Arch