-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.sh
More file actions
37 lines (23 loc) · 739 Bytes
/
install.sh
File metadata and controls
37 lines (23 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#./install.sh myLsmb13_test
CWD=`pwd`
APACHE_ALIAS='ledgersmb'
if [ $# -eq 1 ]
then
APACHE_ALIAS=$1
echo "setting apache alias to $APACHE_ALIAS"
fi
echo "Installing Perl Modules"
cpan Module::Install
perl Makefile.PL
make
echo "Configuring Apache"
#sed "s|WORKING_DIR|$CWD|" ledgersmb-httpd.conf.template > ledgersmb-httpd.conf
sed "s|/ledgersmb|/$APACHE_ALIAS|g;s|WORKING_DIR|$CWD|g" ledgersmb-httpd.conf.template > ledgersmb-httpd.conf
echo "Which user does your web server run as?"
read username
chown $username spool templates css
echo "Where do we copy the ledgersmb-httpd.conf file to?"
read location
cp ledgersmb-httpd.conf $location
echo "Please restart your web server for the changes to take effect."