From 758f0f821b6503a0c89e276b4f4598b155514d0b Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 14 Aug 2025 18:22:48 +0300 Subject: [PATCH] Edit package scripts --- pkg.info | 1 + post_install.sh | 5 ++++- post_remove.sh | 2 +- post_update.sh | 5 ++++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pkg.info b/pkg.info index 09c9bae..f82d001 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,7 @@ name: make-ca description: PKI setup script for LFS (and others) version: 1.16 +revision: 2 url: https://github.com/lfs-book/make-ca license: GPL3 or MIT architecture: any diff --git a/post_install.sh b/post_install.sh index afa01f6..414dec4 100644 --- a/post_install.sh +++ b/post_install.sh @@ -1,3 +1,6 @@ #!/bin/sh -/usr/sbin/make-ca -D "$BPM_ROOT" -g +if ! /usr/sbin/make-ca -g; then + echo "No internet connection! Make sure to run 'make-ca -g' to generate ca-certificates" + exit 1 +fi diff --git a/post_remove.sh b/post_remove.sh index 885d4c4..f6f8d71 100644 --- a/post_remove.sh +++ b/post_remove.sh @@ -1,3 +1,3 @@ #!/bin/sh -rm -rf "$BPM_ROOT"/etc/ssl/* +rm -rf /etc/ssl/* diff --git a/post_update.sh b/post_update.sh index be2cbd9..bbbdcb6 100644 --- a/post_update.sh +++ b/post_update.sh @@ -1,3 +1,6 @@ #!/bin/sh -/usr/sbin/make-ca -D "$BPM_ROOT" -r +if ! /usr/sbin/make-ca -r; then + echo "No internet connection! Make sure to run 'make-ca -r' to rebuild ca-certificates" + exit 1 +fi