diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-02-06 07:34:39 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-02-06 07:34:39 +0000 |
commit | 44aad76f7aa673a6036477d1edc64d27a64b1ad0 (patch) | |
tree | 767fa9528e68d0d3235c35dd7625f2f4a81dc838 | |
parent | 0279a2191900820c941a738548f43b6a78d50f3b (diff) |
Changing to install script rather than default location.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@800 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r-- | install.sh | 16 | ||||
-rw-r--r-- | ledger-smb-httpd.conf | 14 |
2 files changed, 23 insertions, 7 deletions
diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..085e0310 --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +CWD=`pwd` + +sed -i "s|WORKING_DIR|$CWD|" + +echo "Which user does your web server run as?" +read username + +chmod $username spool templates css + +echo "Where do we copy the ledger-smb-httpd.conf file to?" +read location +cp ledger-smb-httpd.conf $location + +echo "Please restart your web server for the changes to take effect." diff --git a/ledger-smb-httpd.conf b/ledger-smb-httpd.conf index d3621592..4e3eadb7 100644 --- a/ledger-smb-httpd.conf +++ b/ledger-smb-httpd.conf @@ -1,7 +1,7 @@ -Alias /ledger-smb /usr/local/ledger-smb/ +Alias /ledger-smb WORKING_DIR/ledger-smb/ -<Directory /usr/local/ledger-smb> +<Directory WORKING_DIR/ledger-smb> AllowOverride All AddHandler cgi-script .pl Options ExecCGI Includes FollowSymlinks @@ -13,27 +13,27 @@ Alias /ledger-smb /usr/local/ledger-smb/ </Files> </Directory> -<Directory /usr/local/ledger-smb/users> +<Directory WORKING_DIR/ledger-smb/users> Order Deny,Allow Deny from All </Directory> -<Directory /usr/local/ledger-smb/bin> +<Directory WORKING_DIR/ledger-smb/bin> Order Deny,Allow Deny from All </Directory> -<Directory /usr/local/ledger-smb/utils> +<Directory WORKING_DIR/ledger-smb/utils> Order Deny,Allow Deny from All </Directory> -<Directory /usr/local/ledger-smb/spool> +<Directory WORKING_DIR/ledger-smb/spool> Order Deny,Allow Deny from All </Directory> -<Directory /usr/local/ledger-smb/LedgerSMB> +<Directory WORKING_DIR/ledger-smb/LedgerSMB> Order Deny,Allow Deny from All </Directory> |