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.";