File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -293,15 +293,18 @@ sub mysql_setup {
293
293
exit 0;
294
294
}
295
295
} elsif ( -r " /etc/mysql/debian.cnf" and $doremote == 0 ){
296
- # It's a debian system , use the maintenance account
296
+ # We have a debian maintenance account , use it
297
297
$mysqllogin = " --defaults-file=/etc/mysql/debian.cnf" ;
298
298
my $loginstatus = ` mysqladmin $mysqllogin ping 2>&1` ;
299
- unless ($loginstatus =~ / mysqld is alive/ ) {
299
+ if ($loginstatus =~ / mysqld is alive/ ) {
300
+ goodprint " Logged in using credentials from debian maintenance account.\n " ;
301
+ return 1;
302
+ } else {
300
303
badprint " Attempted to use login credentials from debian maintenance account, but they failed.\n " ;
301
304
exit 0;
302
305
}
303
306
} else {
304
- # It's not Plesk, we should try a login
307
+ # It's not Plesk or debian , we should try a login
305
308
my $loginstatus = ` mysqladmin $remotestring ping 2>&1` ;
306
309
if ($loginstatus =~ / mysqld is alive/ ) {
307
310
# Login went just fine
You can’t perform that action at this time.
0 commit comments