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