3 # moinmoin-install: Install a MoinMoin instance to a particular
4 # directory, setting AFS permissions properly.
6 # Usage: moinmoin-install directory
9 echo "Usage: moinmoin-install directory"
13 echo "Too many arguments"
16 elif test -z "$1"; then
17 echo "Not enough arguments"
24 echo "Copying files ..."
26 cp -r /usr
/share
/moin
/data
"$DIR"
27 cp -r /usr
/share
/moin
/underlay
"$DIR"
28 cp /usr
/share
/moin
/server
/moin.cgi
"$DIR"
29 cp /usr
/share
/moin
/config
/wikiconfig.py
"$DIR"
32 echo "Setting ACLs ..."
33 fs setacl
"$DIR" $USER.daemon
read
34 fsr setacl
"$DIR"/data
$USER.daemon
write
35 fsr setacl
"$DIR"/underlay
$USER.daemon
write
38 echo "MoinMoin instance successfully created at directory $DIR"
39 echo "Don't forget to edit $DIR/wikiconfig.py"