From 755bd93a09e5b7f895672881b9bf0710824a397d Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 5 Apr 2011 20:54:41 +0000 Subject: [PATCH] Un-hardcode /tmp in zmupdate git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3312 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmupdate.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zmupdate.pl.in b/scripts/zmupdate.pl.in index e38ea9e5a..830b8b20f 100644 --- a/scripts/zmupdate.pl.in +++ b/scripts/zmupdate.pl.in @@ -339,7 +339,7 @@ if ( $version ) print( "Please ensure that ZoneMinder is stopped on your system prior to upgrading the database.\nPress enter to continue or ctrl-C to stop : " ); my $response = ; - 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 : " ); + print( "\nDo you wish to take a backup of your database prior to upgrading?\nThis may result in a large file in @ZM_TMPDIR@ if you have a lot of events.\nPress 'y' for a backup or 'n' to continue : " ); $response = ; chomp( $response ); while ( $response !~ /^[yYnN]$/ ) @@ -362,7 +362,7 @@ if ( $version ) $command .= " -p".$db_pass; } } - my $backup = "/tmp/".ZM_DB_NAME."-".$version.".dump"; + my $backup = "@ZM_TMPDIR@/".ZM_DB_NAME."-".$version.".dump"; $command .= " --add-drop-table --databases ".ZM_DB_NAME." > ".$backup; print( "Creating backup to $backup. This may take several minutes.\n" ); print( "Executing '$command'\n" ) if ( DBG_LEVEL > 0 );