From deed92b6e246f5b396b99664f9cd09ae8a1533f7 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Mon, 26 Dec 2022 18:59:30 +0100 Subject: [PATCH] Update install script to correct Debian use case --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cff34ce..63343c6 100755 --- a/install.sh +++ b/install.sh @@ -14,10 +14,11 @@ else sudo="" fi -$sudo cp $run_directory/*.crt /etc/ca-certificates/trust-source/anchors/ if command -v update-ca-trust > /dev/null; then + $sudo cp $run_directory/*.crt /etc/ca-certificates/trust-source/anchors/ $sudo update-ca-trust elif command -v update-ca-certificates > /dev/null; then + $sudo cp $run_directory/*.crt /usr/local/share/ca-certificates/ $sudo update-ca-certificates else echo "No update-ca binary found. Exiting with error!"