summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2008-10-06 19:33:43 +0000
committerdeva <deva>2008-10-06 19:33:43 +0000
commitc53225adfc70b166dffb08fa489d6198a3c97365 (patch)
tree7fad08c4345a893abe40033e87c6438ac7ada6f9
parent88e0126250b15db398f6ce6c41944fceb2723e5b (diff)
Added default user admin to web module
-rwxr-xr-xcreateentities18
1 files changed, 18 insertions, 0 deletions
diff --git a/createentities b/createentities
index dc01a7f..6400b43 100755
--- a/createentities
+++ b/createentities
@@ -2,6 +2,9 @@
GROUP="apache"
+#
+# Create user files
+#
if test -f forum/data/users.xml
then
echo "forum/data/users.xml already exists."
@@ -15,6 +18,21 @@ else
chmod g+wr forum/data/users.xml
fi
+if test -f data/users.xml
+then
+ echo "data/users.xml already exists."
+else
+ echo "Creating data/users.xml"
+ echo "<?xml version='1.0' encoding='UTF-8'?>" > data/users.xml
+ echo "<users>" >> data/users.xml
+ echo " <user userid='admin' password='8456c0209aaa9ca04730a3160caf6e5e6b5ea389'/>" >> data/users.xml
+ echo "</users>" >> data/users.xml
+ chgrp $GROUP data/users.xml
+ chmod g+wr data/users.xml
+fi
+
+
+
#
# Create config files
#