Skip to content

Commit

Permalink
ZCS-11305:option to choose installation of patch packages in lab mach…
Browse files Browse the repository at this point in the history
…ines
  • Loading branch information
umagmrit authored and gautamdg committed May 16, 2022
1 parent 3b35547 commit a0b205c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rpmconf/Install/Util/globals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ REMOVE="no"
UPGRADE="no"
HOSTNAME=`hostname --fqdn`
ZIMBRAINTERNAL=no
echo $HOSTNAME | egrep -qe 'eng.synacor.com$|eng.zimbra.com$|lab.zimbra.com$' > /dev/null 2>&1
echo $HOSTNAME | egrep -qe 'eng.synacor.com$|eng.zimbra.com$|lab.zimbra.com$|zimbradev.com$' > /dev/null 2>&1
if [ $? = 0 ]; then
ZIMBRAINTERNAL=yes
fi
Expand Down
27 changes: 22 additions & 5 deletions rpmconf/Install/Util/utilfunc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ verifyUpgrade() {
if [ x"$SKIP_ACTIVATION_CHECK" = "xno" ]; then
if [ -x "bin/checkLicense.pl" ]; then
echo "Validating existing license is not expired and qualifies for upgrade"
echo $HOSTNAME | egrep -qe 'eng.vmware.com$|eng.zimbra.com$|lab.zimbra.com$' > /dev/null 2>&1
echo $HOSTNAME | egrep -qe 'eng.vmware.com$|eng.zimbra.com$|lab.zimbra.com$|zimbradev.com$' > /dev/null 2>&1
if [ $? = 0 ]; then
# echo "Running bin/checkLicense.pl -i -v $ZM_INST_VERSION"
`bin/checkLicense.pl -i -v $ZM_INST_VERSION >/dev/null`
Expand Down Expand Up @@ -2107,7 +2107,7 @@ configurePackageServer() {
USE_ZIMBRA_PACKAGE_SERVER="yes"
PACKAGE_SERVER="repo.zimbra.com"
response="no"
echo $HOSTNAME | egrep -qe 'eng.vmware.com$|eng.zimbra.com$|lab.zimbra.com$' > /dev/null 2>&1
echo $HOSTNAME | egrep -qe 'eng.vmware.com$|eng.zimbra.com$|lab.zimbra.com$|zimbradev.com$' > /dev/null 2>&1
if [ $? = 0 ]; then
askYN "Use internal development repo" "N"
if [ $response = "yes" ]; then
Expand Down Expand Up @@ -2317,18 +2317,35 @@ getInstallPackages() {

# askInstallPkgYN args : PROMPT REQUIRE_STORE=yes|no YES_STORE_DEFAULT=Y|N NO_STORE_DEFAULT=Y|N

ZIMBRAINTERNAL=no
echo $HOSTNAME | egrep -qe 'eng.zimbra.com$|lab.zimbra.com$|zimbradev.com$' > /dev/null 2>&1
if [ $? = 0 ]; then
ZIMBRAINTERNAL=yes
fi
if [ $i = "zimbra-license-tools" ]; then
response="yes"
elif [ $i = "zimbra-modern-ui" ]; then
ifStoreSelectedY
elif [ $i = "zimbra-modern-zimlets" ]; then
ifStoreSelectedY
elif [ $i = "zimbra-patch" ]; then
ifStoreSelectedY
if [ x"$ZIMBRAINTERNAL" = "xyes" ] && [ $STORE_SELECTED = "yes" ]; then
askYN "Install $i" "Y"
else
ifStoreSelectedY
fi
elif [ $i = "zimbra-mta-patch" ]; then
response="$MTA_SELECTED"
if [ x"$ZIMBRAINTERNAL" = "xyes" ] && [ $MTA_SELECTED = "yes" ]; then
askYN "Install $i" "Y"
else
response="$MTA_SELECTED"
fi
elif [ $i = "zimbra-proxy-patch" ]; then
response="$PROXY_SELECTED"
if [ x"$ZIMBRAINTERNAL" = "xyes" ] && [ $PROXY_SELECTED = "yes" ]; then
askYN "Install $i" "Y"
else
response="$PROXY_SELECTED"
fi
elif [ $i = "zimbra-license-extension" ]; then
ifStoreSelectedY
elif [ $i = "zimbra-network-store" ]; then
Expand Down

0 comments on commit a0b205c

Please sign in to comment.