From fdfe9c5ce2f503938b1818bc66544b1978bfdc05 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 1 Nov 2011 11:08:11 +0100 Subject: Rename to .sh --- createentities.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 createentities.sh (limited to 'createentities.sh') diff --git a/createentities.sh b/createentities.sh new file mode 100755 index 0000000..1c3fbba --- /dev/null +++ b/createentities.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +GROUP="apache" + +# +# Create user file +# +if test -f data/users.xml +then + echo "data/users.xml already exists." +else + echo "Creating data/users.xml with the user 'admin' password: 'executioncms'. Please log in and change this..." + echo "" > data/users.xml + echo "" >> data/users.xml + echo " " >> data/users.xml + echo "" >> data/users.xml + chgrp $GROUP data/users.xml + chmod g+wr data/users.xml +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 + +# +# Create symlink to forum +# +if test -L htdocs/forum +then + echo "htdocs/forum symlink already exists" +else + echo "Creating htdocs/forum symlink" + (cd htdocs; ln ../forum/htdocs forum -s) +fi -- cgit v1.2.3