From b2c5ad0c4fe1334688f0a01d348d81a4432a5c25 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Wed, 14 Sep 2011 00:57:01 -0700 Subject: [PATCH] ubuntu package: fixed misc bugs --- contrib/util/ubuntu_package_scripts/production/postinst | 4 +++- contrib/util/ubuntu_package_scripts/production/preinst | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/util/ubuntu_package_scripts/production/postinst b/contrib/util/ubuntu_package_scripts/production/postinst index bb40f1fd7..7d53f3a26 100644 --- a/contrib/util/ubuntu_package_scripts/production/postinst +++ b/contrib/util/ubuntu_package_scripts/production/postinst @@ -514,7 +514,9 @@ case "$1" in log_only "Your PHP configuration is perfect for OpenEMR." break else - prompt_input openemr/php_configure high ret_result + if [ "$i" -eq "1" ]; then + prompt_input openemr/php_configure high ret_result + fi fi if [ "$i" -eq "1" ]; then log_only "(We have placed a backup of your php configuration at $PHP.BAK)" diff --git a/contrib/util/ubuntu_package_scripts/production/preinst b/contrib/util/ubuntu_package_scripts/production/preinst index c445c9bfa..70f38904f 100644 --- a/contrib/util/ubuntu_package_scripts/production/preinst +++ b/contrib/util/ubuntu_package_scripts/production/preinst @@ -179,7 +179,9 @@ upgrade_function () { fi #ensure the mysql database and user exist - if ! [ "`check_mysql "$SQLPASSWORD" "$SQLDATABASE" "$SQLLOCATION" "$SQLUSER"`" == "$SQLDATABASE" ]; then + if check_mysql "$SQLPASSWORD" "$SQLDATABASE" "$SQLLOCATION" "$SQLUSER"; then + log_only "For upgrade, confirmed that the mysql database and mysql user exist" + else prompt_input openemr/upgrade_not_database critical ret_result unable_exit "MySQL '$SQLDATABASE' database does not exist, unable to upgrade." fi -- 2.11.4.GIT