Attempt to append signing macros to the non-root users config.

This commit is contained in:
Dave Page 2020-03-31 16:59:45 +01:00
parent 37e39ca089
commit f0d077fed8

View File

@ -34,7 +34,7 @@ fi
read -p "Do you want to append RPM macros for signing packages to ~/.rpmmacros (y/n)? " RESPONSE
case ${RESPONSE} in
y|Y )
cat << EOF >> ~/.rpmmacros
cat << EOF >> ~$USER/.rpmmacros
# Macros for signing RPMs.
# Added by the pgAdmin 4 build environment setup script at the users request.
@ -44,6 +44,7 @@ case ${RESPONSE} in
%_gpgbin /usr/bin/gpg2
%__gpg_sign_cmd %{__gpg} gpg --force-v3-sigs --batch --verbose --no-armor --passphrase-fd 3 --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} --digest-algo sha256 %{__plaintext_filename}'
EOF
echo "RPM macros for signing appended to ~$USER/.rpmmacros."
;;
* )
exit 1;;