use lib '/home/stan/Work/Install/lib/perl5/site_perl/5.8.8'; # Include custom perl install path
48
49
use ZoneMinder::Base qw(:all);
49
50
use ZoneMinder::Config qw(:all);
50
51
use ZoneMinder::Debug qw(:all);
338
339
print( "Please ensure that ZoneMinder is stopped on your system prior to upgrading the database.\nPress enter to continue or ctrl-C to stop : " );
339
340
my $response = <STDIN>;
340
341
341
print( "\nDo you wish to take a backup of your database prior to upgrading?\nThis may result in a large file if you have a lot of events.\nPress 'y' for a backup or 'n' to continue : " );
342
print( "\nDo you wish to take a backup of your database prior to upgrading?\nThis may result in a large file in /tmp if you have a lot of events.\nPress 'y' for a backup or 'n' to continue : " );
342
343
$response = <STDIN>;
343
344
chomp( $response );
344
345
while ( $response !~ /^[yYnN]$/ )
361
362
$command .= " -p".$db_pass;
362
363
}
363
364
}
364
my $backup = ZM_DB_NAME."-".$version.".dump";
365
my $backup = "/tmp/".ZM_DB_NAME."-".$version.".dump";