More patches to make-ca.sh for NixOS

This commit is contained in:
jD91mZM2 2018-09-23 19:26:22 +02:00
parent 2179beb185
commit 501b3af198
No known key found for this signature in database
GPG Key ID: 3055D54729A72666

View File

@ -1,6 +1,5 @@
diff -ru source/make-ca.sh source2/make-ca.sh
--- source/make-ca.sh 2018-05-08 10:27:57.829291956 +0200
+++ source2/make-ca.sh 2018-05-08 10:33:58.040239253 +0200
--- source/make-ca.sh 2018-08-25 17:38:12.512463896 +0200
+++ build/make-ca.sh 2018-09-23 14:45:12.492919202 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
@ -20,3 +19,12 @@ diff -ru source/make-ca.sh source2/make-ca.sh
ANCHORDIR="${PKIDIR}/anchors"
CABUNDLE="${SSLDIR}/ca-bundle.crt"
CERTDIR="${SSLDIR}/certs"
@@ -723,7 +723,7 @@
unset cert
fi
-/usr/bin/c_rehash "${DESTDIR}${CERTDIR}" 2>&1>/dev/null
+c_rehash "${DESTDIR}${CERTDIR}" 2>&1>/dev/null
popd > /dev/null
# Clean up the mess