summaryrefslogtreecommitdiff
path: root/createentities
diff options
context:
space:
mode:
authordeva <deva>2008-10-10 19:08:51 +0000
committerdeva <deva>2008-10-10 19:08:51 +0000
commite61e99c0c24c27aad23c211524b4f32fb2159065 (patch)
tree77dd36780ea372823f0d49f077f6f9a15a2fd9ec /createentities
parentc53225adfc70b166dffb08fa489d6198a3c97365 (diff)
create an empty forum.
Diffstat (limited to 'createentities')
-rwxr-xr-xcreateentities18
1 files changed, 18 insertions, 0 deletions
diff --git a/createentities b/createentities
index 6400b43..2ed5b53 100755
--- a/createentities
+++ b/createentities
@@ -62,3 +62,21 @@ else
echo "Creating htdocs/forum symlink"
(cd htdocs; ln ../forum/htdocs forum -s)
fi
+
+
+#
+# Create a forum
+#
+if test -d forum/data/forum
+then
+ echo "forum/data/forum already exists"
+else
+ mkdir forum/data/forum
+ echo "<?xml version='1.0' encoding='UTF-8'?>" > forum/data/forum/forums.xml
+ echo "<forums>" >> forum/data/forum/forums.xml
+ echo " <forum fid='1' readlist='1' writelist='1' name='Test Forum'/>" >> forum/data/forum/forums.xml
+ echo "</forums>" >> forum/data/forum/forums.xml
+ mkdir forum/data/forum/1
+ chgrp $GROUP forum/data/forum/1
+ chmod g+w forum/data/forum/1
+fi