diff -r fa6e150cec23 contrib/createinstance/README.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/createinstance/README.txt	Sun May 06 18:24:13 2007 +0200
@@ -0,0 +1,29 @@
+README Wiki Instance Creation
+
+After you have downloaded and installed MoinMoin, you will want to "have a wiki".
+You can use the contributed "createinstance.sh" bash script to install the instance.
+
+*How to use*
+
+ 1. Copy the script to your home directory (or $HOME/bin)
+
+ 2. Edit the script
+
+You should define the following variables inside the script:
+
+The path of MoinMoin shared files:
+SHARE=/usr/share/moin
+
+Define the user and the group of the web server:
+USER=www-data
+GROUP=www-data
+
+ 3. Make it executable: 
+    "chmod u+x createinstance.sh"
+
+ 4. Think about where you want the instance to be located. Like:
+    "/usr/local/share/moin-instance"
+
+ 4. Run the script with superuser rights like:
+    "sudo ./createinstance.sh /usr/local/share/moin-instance"
+ 
diff -r fa6e150cec23 contrib/createinstance/createinstance.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/createinstance/createinstance.sh	Sun May 06 18:40:08 2007 +0200
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+# path of MoinMoin shared files
+SHARE=/usr/share/moin
+
+# path to target instance location
+INSTANCE=$1
+
+# the user and the group of the web server.
+USER=www-data
+GROUP=www-data
+
+if [ ! $1 ]
+then
+  echo "You must specify an instance (relative or absolute path)"
+  exit
+fi
+
+if [[ -e $1 || -d $1 ]]
+then
+  echo "$1 already exists"
+  exit
+fi
+
+mkdir -p $INSTANCE
+cp -R $SHARE/data $INSTANCE
+cp -R $SHARE/underlay $INSTANCE
+cp $SHARE/config/wikiconfig.py $INSTANCE
+
+chown -R $USER:$GROUP $INSTANCE
+chmod -R ug+rwX $INSTANCE
+chmod -R o-rwx $INSTANCE
+
+if [ $? ]
+then
+  echo "Done."
+fi
+
