File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2184,6 +2184,20 @@ package virtual_server;
2184
2184
'grep' => 'Allowed mysql hosts:.*1\\.2\\.3\\.4',
2185
2185
},
2186
2186
2187
+ # Remove the allowed database host
2188
+ { 'command' => 'modify-database-hosts.pl',
2189
+ 'args' => [ [ 'domain', $test_domain ],
2190
+ [ 'type', 'mysql' ],
2191
+ [ 'remove-host', '1.2.3.4' ] ],
2192
+ },
2193
+
2194
+ # Make sure the allowed DB is gone
2195
+ { 'command' => 'list-domains.pl',
2196
+ 'args' => [ [ 'domain', $test_domain ],
2197
+ [ 'multiline' ] ],
2198
+ 'antigrep' => 'Allowed mysql hosts:.*1\\.2\\.3\\.4',
2199
+ },
2200
+
2187
2201
$config{'postgres'} ?
2188
2202
(
2189
2203
# Create a PostgreSQL database
@@ -12867,7 +12881,7 @@ sub postgresql_login_commands
12867
12881
12868
12882
# Check PostgreSQL login
12869
12883
{ 'command' => 'su - '.$user.' -c '.
12870
- quotemeta('psql -U '.$user.' -h localhost '.
12884
+ quotemeta('psql -U '.$user.' '.
12871
12885
'-c "'.($sql || 'select 666').'" '.$db),
12872
12886
$sql ? ( ) : $failmode ? ( 'antigrep' => 666 ) : ( 'grep' => 666 ),
12873
12887
'ignorefail' => $failmode,
You can’t perform that action at this time.
0 commit comments