2012-07-21 | Paul Boddie | raw annotate files changeset graph | Restructured the action so that both signed and signed/encrypted messages can be processed. Split the posting test program into separate signing, encryption and posting programs. Added a default mask command to the initialisation script. |
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 23 setfacl -m d:m:rwx $WIKI/gnupg