From da9329257c46eccfed57a9e887e45bc5c789b25b Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 6 Aug 2019 00:44:05 +0100 Subject: [PATCH] Fix gpg unsafe perms warning --- aptosaurus.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aptosaurus.sh b/aptosaurus.sh index dfa1ebd..f497525 100755 --- a/aptosaurus.sh +++ b/aptosaurus.sh @@ -79,7 +79,8 @@ task_setup() { task_end $?; if [ ! -d "${GNUPGHOME}" ]; then - mkdir "${GNUPGHOME}" + mkdir "${GNUPGHOME}"; + chown 0700 "${GNUPGHOME}"; if [ ! -f "./secret.gpg" ]; then echo "Couldn't find the secret key to use."; echo "Make sure ${HC}secret.gpg${RS} exists on disk.";