We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46351a4 commit 5fd1e75Copy full SHA for 5fd1e75
test/test.bats
@@ -143,11 +143,9 @@ function validate_database(){
143
host_str=$(grep "HOST='localhost'" $HESTIA/conf/mysql.conf)
144
parse_object_kv_list "$host_str"
145
if [ -z $PORT ]; then PORT=3306; fi
146
- if [ -z $HOST ] || [ -z $USER ] || [ -z $PASSWORD ]; then
147
- echo "Error: mysql config parsing failed"
148
- log_event "$E_PARSING" "$ARGUMENTS"
149
- exit $E_PARSING
150
- fi
+
+ refute [ -z "$HOST" ]
+ refute [ -z "$PORT" ]
151
152
# Create an connection to verify correct username / password has been set correctly
153
tmpfile=$(mktemp /tmp/mysql.XXXXXX)
0 commit comments