Made DBI connect changes suggested by Brett Williams.
authorAlan J. Pippin <ajp@server.pippins.net>
Wed, 30 Jan 2008 15:00:32 +0000 (08:00 -0700)
committerAlan J. Pippin <ajp@pippins.net>
Wed, 30 Jan 2008 15:00:32 +0000 (08:00 -0700)
bin/backup_phpgw_db
bin/import_ward_data
bin/parse_ward_data

index b00afdabffcb0f04944482e548f46847bbae1923..beaf25488ca3f956947ff07e839d5db0d6313434 100755 (executable)
@@ -1,13 +1,14 @@
 #!/bin/bash
 
 MNTPNT="/backup"
+MOUNTIT=1
 DSTDIR="/backup/mysql/"
 DBNAME=phpgroupware
 DBUSER=phpgroupware
 DBPASS=phpgroupware
 
-mount -w -o remount $MNTPNT 
+[ $MOUNTIT == 1 ] && mount -w -o remount $MNTPNT 
 /usr/bin/mysqldump --databases $DBNAME -u $DBUSER --password=$DBPASS -c > $DSTDIR/mysql_phpgw_backup.sql
 ls -l $DSTDIR/mysql_phpgw_backup.sql
-mount -r -o remount $MNTPNT
+[ $MOUNTIT == 1 ] && mount -r -o remount $MNTPNT
 
index ef6d62b4359b104970b9ec48a38956fb1706ea02..53a3c3d05aefbc4d28b5421bb2a6411da3f5e4c7 100755 (executable)
@@ -667,7 +667,7 @@ sub check_for_changed_ids
 
 ###################################################
 # Open a connection to the database
-$dbh=DBI->connect("dbi:mysql:dbname=$dbname;host=$dbhost;port=$dbport",$dbuser,$dbpass,{
+$dbh=DBI->connect("dbi:mysql:dbname=$dbname:host=$dbhost:port=$dbport",$dbuser,$dbpass,{
     AutoCommit=>0,
     PrintError=>0}) or print "Connect Failure:".$DBI::errstr."\n" and exit 2;
 
index c2397cf211ee586971b917ac5a964508788ef28e..7a3c07249ef4b5edafa6a21d19f7114a1f2fc153 100755 (executable)
@@ -94,7 +94,7 @@ sub print_birthdays
 
 ###################################################
 # Open a connection to the database
-$dbh=DBI->connect("dbi:mysql:dbname=$dbname;host=$dbhost;port=$dbport",$dbuser,$dbpass,{
+$dbh=DBI->connect("dbi:mysql:dbname=$dbname:host=$dbhost:port=$dbport",$dbuser,$dbpass,{
     AutoCommit=>0,
     PrintError=>0}) or print "Connect Failure:".$DBI::errstr."\n" and exit 2;