Skip to content

Commit 475016e

Browse files
committed
Fix to show the spinner even if PostgreSQL isn't installed
1 parent 97af7b4 commit 475016e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/Virtualmin/Config/Plugin/PostgreSQL.pm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ sub actions {
2525

2626
$self->use_webmin();
2727

28+
$self->spin();
29+
2830
if (foreign_check("postgresql")) {
29-
$self->spin();
3031
eval {
3132
my $err; # We should handle errors better here.
3233
foreign_require("postgresql", "postgresql-lib.pl");
@@ -46,6 +47,10 @@ sub actions {
4647
$log->error("Error configuring PostgreSQL: $@");
4748
$self->done(1);
4849
}
50+
} else {
51+
$log->info("PostgreSQL Webmin module has not been installed yet, ".
52+
"skipping configuration.");
53+
$self->done(2);
4954
}
5055
}
5156

0 commit comments

Comments
 (0)