fix: force confold in dpkg

This commit is contained in:
Lowder
2026-09-27 17:04:23 +05:00
parent 67a2beccc5
commit 0bbd2be8ca
5 changed files with 8 additions and 5 deletions
Generated
+1 -1
View File
@@ -2488,7 +2488,7 @@ dependencies = [
[[package]]
name = "probe"
version = "0.6.7"
version = "0.6.8"
dependencies = [
"anyhow",
"clap",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "probe"
version = "0.6.7"
version = "0.6.8"
edition = "2024"
license-file = "../LICENSE"
description = "Dynamic network probe daemon for Cheburcheck"
+1 -1
View File
@@ -1,4 +1,4 @@
# Required: probe ID and token. Request them at https://forms.gle/nZqBfXC65GebUKWB9.
# Required: reporter id and token. You can request them at support@cheburcheck.ru.
PROBE_ID=
PROBE_TOKEN=
+1 -1
View File
@@ -235,7 +235,7 @@ install_package() {
case "$PLATFORM" in
debian)
log "installing $PACKAGE"
apt-get install -y "$WORK_DIR/$PACKAGE"
apt-get -o Dpkg::Options::=--force-confold install -y "$WORK_DIR/$PACKAGE"
;;
openwrt-apk)
set -- "$WORK_DIR/$PACKAGE"
+4 -1
View File
@@ -382,7 +382,10 @@ fn install(kind: PackageKind, package: &Path, luci_package: Option<&Path>) -> Re
match kind {
PackageKind::Debian => {
run_paths("dpkg-deb", &[Path::new("--info"), package])?;
run_paths("dpkg", &[Path::new("-i"), package])?;
run_paths(
"dpkg",
&[Path::new("--force-confold"), Path::new("-i"), package],
)?;
run_args("systemctl", &["try-restart", "cheburprobe.service"])
}
PackageKind::Apk => {