Skip to content

Commit

Permalink
Merge pull request #26 from saicharansunkara-ibm/Fix-mount-helper-ins…
Browse files Browse the repository at this point in the history
…tall-issues

Fix: Mount helper install issues fixes
  • Loading branch information
anand-desai authored Aug 19, 2024
2 parents 065bf64 + 21e6341 commit 1ac68f2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion mount-helper/install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,18 @@ remove_strongswan_restart_service() {
_install_app() {
PACKAGE_NAME=$1
log "Installing package $PACKAGE_NAME"
eval "$LINUX_INSTALL_APP $PACKAGE_NAME"
# Install the package with specific conditions for mount.ibmshare* packages
if [[ $PACKAGE_NAME == mount.ibmshare* ]]; then
if [ "$LINUX_INSTALL_APP" == "$YUM" ]; then
eval "yum install $PACKAGE_NAME --nogpgcheck"
elif [ "$LINUX_INSTALL_APP" == "$APT" ]; then
eval "apt-get --allow-unauthenticated install $PACKAGE_NAME"
elif [ "$LINUX_INSTALL_APP" == "$ZYP" ]; then
eval "zypper --no-gpg-checks install $PACKAGE_NAME"
fi
else
eval "$LINUX_INSTALL_APP $PACKAGE_NAME"
fi
check_result "Problem installing package: $PACKAGE_NAME"
log "Updating package $PACKAGE_NAME"
# Update the package
Expand Down

0 comments on commit 1ac68f2

Please sign in to comment.