r1998 - Fix wwinit errors when ~/.my.cnf isn't avail
7 views
Skip to first unread message
com...@warewulf.lbl.gov
unread,
Aug 5, 2016, 4:49:55 PM8/5/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to warewul...@lbl.gov
Author: gmk
Date: 2016-08-05 13:49:53 -0700 (Fri, 05 Aug 2016)
New Revision: 1998
Modified:
trunk/common/libexec/wwinit/10-database.init
Log:
Fix wwinit errors when ~/.my.cnf isn't avail
Modified: trunk/common/libexec/wwinit/10-database.init
===================================================================
--- trunk/common/libexec/wwinit/10-database.init 2016-08-05 20:39:46 UTC (rev 1997)
+++ trunk/common/libexec/wwinit/10-database.init 2016-08-05 20:49:53 UTC (rev 1998)
@@ -78,12 +78,6 @@
fi
if ! echo "use $DBNAME;" | mysql 2>/dev/null; then
- if ! [ -e ~/.my.cnf ]; then
- wwprint "Possible mysql authintication failure\n" error
- wwprint "~/.my.cnf file not found. Replace with your USERNAME PASSWORD in the following\n"
- wwprint "echo -e '\\\n[client]\\\nuser=USERNAME\\\npassword=PASSWORD\\\n' >> ~/.my.cnf ; chmod 0600 ~/.my.cnf\n" warn
- exit 255
- fi
wwrun mysqladmin create "$DBNAME" || exit 255
fi