summaryrefslogtreecommitdiff
path: root/localaddmysqldb
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-10-20 15:03:11 +0000
committerJonas Smedegaard <dr@jones.dk>2003-10-20 15:03:11 +0000
commite6292cc021a9f55cfff8ddeb886c529636c6f09b (patch)
tree0cc5e33a7e824f66e1e83a490bf94b19b6198cc9 /localaddmysqldb
parentc62f154f3480a15b1345e86bb9792484b7c32d70 (diff)
Treat failed db user as a warning only (and in fact the failure may be bogus - wwwconfig-common is buggy).
Diffstat (limited to 'localaddmysqldb')
-rwxr-xr-xlocaladdmysqldb22
1 files changed, 11 insertions, 11 deletions
diff --git a/localaddmysqldb b/localaddmysqldb
index dbf94fc..1b7cc3f 100755
--- a/localaddmysqldb
+++ b/localaddmysqldb
@@ -3,7 +3,7 @@
# /usr/local/sbin/localaddmysqldb
# Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localaddmysqldb,v 1.7 2003-05-26 17:09:18 jonas Exp $
+# $Id: localaddmysqldb,v 1.8 2003-10-20 15:03:11 jonas Exp $
#
# Add/update MySQL database
#
@@ -226,16 +226,16 @@ if [ -n "$error" ]; then
esac
fi
if [ -n "$force" ]; then
- if [ -e /usr/share/wwwconfig-common/mysql-dropdb.sh ] ; then
- status=""
- . /usr/share/wwwconfig-common/mysql-dropdb.sh
- if [ "$status" = "error" ] ; then
- echo "$error"
- exit 1
- fi
- else
+# if [ -e /usr/share/wwwconfig-common/mysql-dropdb.sh ] ; then
+# status=""
+# . /usr/share/wwwconfig-common/mysql-dropdb.sh
+# if [ "$status" = "error" ] ; then
+# echo "$error"
+# exit 1
+# fi
+# else
mysql -u$dbadmin $optdbserver -f -e "DROP DATABASE $dbname;"
- fi
+# fi
else
echo "ERROR: $error!"
exit 1
@@ -267,7 +267,7 @@ if [ -e /usr/share/wwwconfig-common/mysql-createuser.sh ] ; then
. /usr/share/wwwconfig-common/mysql-createuser.sh
if [ "$status" = "error" ] ; then
echo "$error"
- exit 1
+# exit 1
fi
for h in `echo "localhost $dballow" | sort -u`; do
mysql -u$dbadmin $optdbserver mysql -e "REVOKE CREATE,DROP ON $dbname.* FROM '$dbuser'@'$h';"