Commit 2a9073fd authored by Marco Mariani's avatar Marco Mariani

retrieve installed packages from envvar: $ZIMBRA_INSTALLED_PKGS

parent 3b024be8
......@@ -607,10 +607,13 @@ sub isEnabled {
sub isInstalled {
my $pkg = shift;
# XXX SLAPOS hardcode the installed packages.
if ($pkg eq "zimbra-store" || $pkg eq "zimbra-core") {
return 1;
}
if (exists $ENV{'ZIMBRA_INSTALLED_PKGS'}) {
for my $p ( split(/ /, $ENV{'ZIMBRA_INSTALLED_PKGS'}) ) {
if ($p eq $pkg) {
return 1;
};
};
};
my $pkgQuery;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment