update to fix race condition on GPG temporary file deletion

This commit is contained in:
Hubert Farnsworth 2019-04-22 16:18:16 +00:00
parent 3ba2053167
commit 68d84d6f06

View File

@ -33,7 +33,9 @@ curl -o /usr/local/bin/gosu.asc -# -SL $url_key
gpg --verify /usr/local/bin/gosu.asc
# cleanup
# cleanup -- need to kill agent so that there is no race condition for
# agent files in $GNUPGHOME
gpgconf --kill gpg-agent
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc
chmod +x /usr/local/bin/gosu