#!/bin/sh
# NEWPGP user group
#
# Create a PGP directory, copy stuff in.

if [ X$2 = "X" ] ; then
        echo Use: NEWPGP username group
        exit
fi

cd $1
mkdir pgp
chown $1.$2 pgp
cd pgp
cp /usr/local/etc/config.txt .
chown $1.$2 config.txt

ln -s /usr/local/etc/pgp.hlp .
cp /u/library/pubring.pgp pgp
echo "Edit ~/pgp/config.txt FIRST, then generate your private key." | mail -s "PGP was just installed" $1
