diff options
author | Juergen Daubert <jue@jue.li> | 2021-10-05 10:41:04 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2021-10-05 10:41:04 +0200 |
commit | 65b585fe25dee0e7c70cf91fc6dd19d99ef9425d (patch) | |
tree | afe544ea77939f0727a127413d6a2902b41509a6 | |
parent | 8976af7afe9aa7c11f83f083e3973b2fed0d4a76 (diff) | |
download | pkgutils-65b585fe25dee0e7c70cf91fc6dd19d99ef9425d.tar.gz pkgutils-65b585fe25dee0e7c70cf91fc6dd19d99ef9425d.tar.xz |
pkgmk: call signify with absolute path
-rw-r--r-- | pkgmk.in | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -329,9 +329,9 @@ check_signature() { done if [ "$PKGMK_PUBLICKEY" ]; then - err=$(signify -q -C -p "$PKGMK_PUBLICKEY" -x "$PKGMK_ROOT/$PKGMK_SIGNATURE" 2>&1) + err=$($PKGMK_SIGNIFY -q -C -p "$PKGMK_PUBLICKEY" -x "$PKGMK_ROOT/$PKGMK_SIGNATURE" 2>&1) else - err=$(signify -q -C -x "$PKGMK_ROOT/$PKGMK_SIGNATURE" 2>&1) + err=$($PKGMK_SIGNIFY -q -C -x "$PKGMK_ROOT/$PKGMK_SIGNATURE" 2>&1) fi RESULT=$? @@ -412,7 +412,7 @@ make_signature() { fi sha256sum --tag $LOCAL_FILENAMES | sed 's|^SHA256 (.*/\(.*\))\(.* = .*\)|SHA256 (\1)\2|' | \ - signify -S -e -x - -q -s "$PKGMK_PRIVATEKEY" -m - > ${PKGMK_SIGNATURE}.tmp + $PKGMK_SIGNIFY -S -e -x - -q -s "$PKGMK_PRIVATEKEY" -m - > ${PKGMK_SIGNATURE}.tmp if [ $? -ne 0 ]; then rm ${PKGMK_SIGNATURE}.tmp @@ -435,7 +435,7 @@ refresh_signature() { fi tail -n +3 ${PKGMK_SIGNATURE} | \ - signify -S -e -x - -q -s "$PKGMK_PRIVATEKEY" -m - > ${PKGMK_SIGNATURE}.tmp + $PKGMK_SIGNIFY -S -e -x - -q -s "$PKGMK_PRIVATEKEY" -m - > ${PKGMK_SIGNATURE}.tmp if [ $? -ne 0 ]; then rm ${PKGMK_SIGNATURE}.tmp @@ -964,6 +964,7 @@ export LC_ALL=POSIX readonly PKGMK_VERSION="#VERSION#" readonly PKGMK_COMMAND="$0" readonly PKGMK_ROOT="$PWD" +readonly PKGMK_SIGNIFY="/usr/bin/signify" PKGMK_CONFFILE="/etc/pkgmk.conf" PKGMK_PKGFILE="Pkgfile" |