diff options
author | deva <deva> | 2008-10-06 18:51:57 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-06 18:51:57 +0000 |
commit | 7cd5f7218b47887bc75a6ee61a4e5ae911dac64a (patch) | |
tree | b6bb560ddc0c7ea3def4bdd2a71be562d3cac505 /createentities | |
parent | a60a6d7c79a9da364870ae6f6e91edf071c097b9 (diff) |
Added default admin user with default password 'executionroom'
Diffstat (limited to 'createentities')
-rwxr-xr-x | createentities | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/createentities b/createentities index 420d84d..dbd8df7 100755 --- a/createentities +++ b/createentities @@ -1,5 +1,7 @@ #!/bin/bash +GROUP="apache" + if test -f forum/data/users.xml then echo "forum/data/users.xml already exists." @@ -7,5 +9,29 @@ else echo "Creating forum/data/users.xml" echo "<?xml version='1.0' encoding='UTF-8'?>" > forum/data/users.xml echo "<users>" >> forum/data/users.xml - echo "</users>" >> forum/data/users.xml + echo " <user enabled='on' uid='0' gid='0' notified='0' username='admin' password='8456c0209aaa9ca04730a3160caf6e5e6b5ea389' name='Administrator' avatar='default.gif' email=''/>" >> forum/data/users.xml + echo "</users>" >> forum/data/users.xml + chgrp $GROUP forum/data/users.xml + chmod g+wr forum/data/users.xml +fi + +# +# Create config files +# +if test -f htdocs/config.php +then + echo "htdocs/config.php already exists" +else + echo "Creating htdocs/config.php" + cp htdocs/config.php.defaults htdocs/config.php fi + +if test -f forum/htdocs/config.php +then + echo "forum/htdocs/config.php already exists" +else + echo "Creating forum/htdocs/config.php" + cp forum/htdocs/config.php.defaults forum/htdocs/config.php +fi + + |