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 | 38 -------------------------------------- createentities.sh | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 38 deletions(-) delete mode 100755 createentities create mode 100755 createentities.sh diff --git a/createentities b/createentities deleted file mode 100755 index 1c3fbba..0000000 --- a/createentities +++ /dev/null @@ -1,38 +0,0 @@ -#!/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 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