import_gpg () { # Install trust for all users - this is dumb but gpg wants to WRITE tp that directory, so # we can't just use a public dir owned by root with 0755 permissions (which would be OK security-wise, # as we never sign anything but just want to verify) local PWUSER local KEY="/tmp/bwlp-blubbediblubb.asc" cp "${BASEDIR}/static_files/gpg-key.asc" "$KEY" chmod 0444 "$KEY" for PWUSER in taskmanager root; do sudo -u "$PWUSER" gpg --import "$KEY" || perror "Could not import gpg key for $PWUSER" done }