diff options
-rwxr-xr-x | createentities | 18 |
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 |