From ad7794f1425c7dbc58af0bedff3167f588efc697 Mon Sep 17 00:00:00 2001 From: Gene Date: Sat, 19 Jul 2025 00:30:56 +0800 Subject: [PATCH 1/2] fix: certificate verification will fail on EDG --- nfpm.yaml | 3 +++ postinst | 2 ++ 2 files changed, 5 insertions(+) create mode 100755 postinst diff --git a/nfpm.yaml b/nfpm.yaml index 2034f1fc..a89d751d 100644 --- a/nfpm.yaml +++ b/nfpm.yaml @@ -106,3 +106,6 @@ contents: - src: ./dist/localproxy-linux-${ARCH}/usr/local/bin/localproxy dst: /usr/bin/localproxy expand: true + +scripts: + postinstall: ./postinst diff --git a/postinst b/postinst new file mode 100755 index 00000000..e145827e --- /dev/null +++ b/postinst @@ -0,0 +1,2 @@ +#!/bin/sh +/usr/sbin/update-ca-certificates --fresh || true From 33db27b119b6a4a8cba021611aa4858eac607d40 Mon Sep 17 00:00:00 2001 From: Gene Date: Sat, 19 Jul 2025 03:04:12 +0800 Subject: [PATCH 2/2] feat: move postinst to debian/post-install to keep the file convention consistent between this repo and device-agent --- postinst => debian/post-install | 0 nfpm.yaml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename postinst => debian/post-install (100%) diff --git a/postinst b/debian/post-install similarity index 100% rename from postinst rename to debian/post-install diff --git a/nfpm.yaml b/nfpm.yaml index a89d751d..8b2e2c83 100644 --- a/nfpm.yaml +++ b/nfpm.yaml @@ -108,4 +108,4 @@ contents: expand: true scripts: - postinstall: ./postinst + postinstall: ./debian/post-install