2012-07-21 | Paul Boddie | raw annotate files changeset graph | Added a convenience script for setting up the Wiki's GPG infrastructure. Added a note about RFC 3156. |
1 #!/bin/sh 2 3 WIKI=$1 4 USER=$2 5 6 if [ ! "$WIKI" ]; then 7 echo "Please specify a Wiki directory." 1>&2 8 exit 1 9 fi 10 11 if [ ! "$USER" ]; then 12 echo "Please specify a Web username." 1>&2 13 exit 1 14 fi 15 16 # Initialise and configure ACLs on the gpg "homedir". 17 18 mkdir $WIKI/gnupg 19 chmod go-rwx $WIKI/gnupg 20 setfacl -m u:$USER:rwx $WIKI/gnupg 21 setfacl -m m:rwx $WIKI/gnupg 22 setfacl -m d:u:$USER:rwx $WIKI/gnupg