From 21e634167facaad5539fae38e5be808c7db2d8ca Mon Sep 17 00:00:00 2001 From: Sai Charan Sunkara Date: Fri, 16 Aug 2024 00:51:04 -0500 Subject: [PATCH] Fix: Mount helper install issues fixes Signed-off-by: Sai Charan Sunkara --- mount-helper/install/install.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mount-helper/install/install.sh b/mount-helper/install/install.sh index 8d06189..7a810bd 100755 --- a/mount-helper/install/install.sh +++ b/mount-helper/install/install.sh @@ -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