1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/databases/msql/scripts/check_old_version

33 lines
715 B
Plaintext
Raw Normal View History

#!/usr/bin/perl
#
1999-08-29 11:03:05 +00:00
# $FreeBSD$
#
if( -d "/var/db/msqldb" ) {
chdir( "/var/db/pkg" );
opendir( DIR, "." );
@oldmsql = grep( /^msql-2.0b[1234]$/, readdir( DIR ) );
1998-10-20 01:28:34 +00:00
closedir( DIR );
if( @oldmsql ) {
if( ! $ENV{OVERWRITE_DB} ) {
print <<END;
mSQL v2.0 beta 5 and above make changes to the AVL index format of your
databases. In order to preserve your existing data, you must:
- use msqldump to dump all your databases
- install beta 5 or above
- use msqladmin to drop and then create each of your databases
- use msql to reload your data
If you understand the consequences of this upgrade, please re-build this
port with the environment variable OVERWRITE_DB defined.
END
exit 1;
}
}
}
#
# EOF