mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-09-28 17:58:03 +03:00
fix: force confold in dpkg
This commit is contained in:
Generated
+1
-1
@@ -2488,7 +2488,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "probe"
|
||||
version = "0.6.7"
|
||||
version = "0.6.8"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
|
||||
+1
-1
@@ -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,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
@@ -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
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user