summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorivan <ivan>2001-10-30 11:47:54 +0000
committerivan <ivan>2001-10-30 11:47:54 +0000
commitedda09a317f5dfef05fb8906f28531ec6f4b0927 (patch)
tree7a86bba24fe02d9b7e2862713479020736fae89a /Makefile
parent399377be683d60fd80690504103b809885b27903 (diff)
whew more install docs and automation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 90b6bf465..3b0262523 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,11 @@
#!/usr/bin/make
-#Pg
DATASOURCE = DBI:Pg:host=localhost;dbname=freeside
+#DATASOURCE=DBI:mysql:freeside
#pgsql on some systems; check /etc/passwd
-DB_ADMIN_USER = postgres
-DB_ADMIN_PASSWORD=
-#mysql
-#DATASOURCE=DBI:mysql:freeside
-#DB_ADMIN_USER=mysql
-#DB_ADMIN_PASSWORD=
+DB_USER = freeside
+DB_PASSWORD=
TEMPLATE = asp
#mason's a bit dodgy stil
@@ -57,7 +53,7 @@ perl-modules:
install-perl-modules: perl-modules
cd FS; \
- make install
+ make install UNINST=1
install: install-perl-modules install-docs
@@ -65,12 +61,14 @@ deploy: install
/etc/init.d/apache restart
create-database:
- perl -e 'use DBIx::DataSource qw( create_database ); create_database( \'${DATASOURCE}\', \'${DB_ADMIN_USER}\', \'${DB_ADMIN_PASSWORD}\' ) or die $DBIx::DataSource::errstr;'
+ perl -e 'use DBIx::DataSource qw( create_database ); create_database( \'${DATASOURCE}\', \'${DB_USER}\', \'${DB_PASSWORD}\' ) or die $DBIx::DataSource::errstr;'
create-config: install-perl-modules
[ -d ${FREESIDE_CONF} ] || mkdir ${FREESIDE_CONF}
chown freeside ${FREESIDE_CONF}
+ echo -e "${DATASOURCE}\n${DB_USER}\n${DB_PASSWORD}" >${FREESIDE_CONF}/secrets
+
[ -d "${FREESIDE_CONF}/conf.${DATASOURCE}" ] \
|| mkdir "${FREESIDE_CONF}/conf.${DATASOURCE}"
chown freeside "${FREESIDE_CONF/conf.${DATASOURCE}"