[Lunar-commits] <moonbase> mysql: Add PRE_BUILD file with backup warning

Stefan Wold ratler at lunar-linux.org
Fri Feb 26 12:19:06 CET 2010


commit 889268f0aebc5ceb2fe7e91609cde220394b3cb6
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Fri Feb 26 07:37:21 2010 +0100

    mysql: Add PRE_BUILD file with backup warning
---
 sql/mysql/PRE_BUILD |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/sql/mysql/PRE_BUILD b/sql/mysql/PRE_BUILD
new file mode 100644
index 0000000..d729ffd
--- /dev/null
+++ b/sql/mysql/PRE_BUILD
@@ -0,0 +1,14 @@
+message " "
+message " ${PROBLEM_COLOR}Warning! ${DEFAULT_COLOR}Database backup have to be done to avoid any data loss during migration."
+message " "
+
+if ! query "Have you done data backup (y/n)? " n; then
+   message " "
+   message " ${DEFAULT_COLOR}Please consult first http://dev.mysql.com/doc/refman/5.1/en/upgrade.html before installing."
+   message " "
+   sleep 5
+   exit 1
+fi
+message " "
+
+default_pre_build


More information about the Lunar-commits mailing list