#!/bin/bash set -e fail () { echo >&2 "fatal: $*"; exit 1; } . settings armorout=stump/etc/approval.key.txt if test -f $armorout; then exit 0; fi if [ x"`whoami`" != xwebstump ]; then fail "wrong user"; fi gpg --batch --gen-key - <" >$armorout