Skip to content

Commit

Permalink
install.sh updates only specific packages installed by mount helper a…
Browse files Browse the repository at this point in the history
…nd create a new mount helper release.

Instead of updating all the packages, install.sh script will update only the packages that are being installed by the install script.

Signed-off-by: Sai Charan Sunkara <[email protected]>
  • Loading branch information
saicharansunkara-ibm authored and anand-desai committed Apr 8, 2024
1 parent 0cda133 commit ea05d8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/${{ matrix.package_dir }}/mount.ibmshare-latest.tar.gz.sha256
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/mount-helper-container/mount-helper-container-latest.tar.gz
/home/runner/work/vpc-file-storage-mount-helper/vpc-file-storage-mount-helper/mount-helper-container/mount-helper-container-latest.tar.gz.sha256
tag_name: 0.0.4
name: 0.0.4
tag_name: 0.0.5
name: 0.0.5
body: CSR generated with SHA1 is not supported to get certs using Metadata.

- name: Initialize CodeQL
Expand Down
16 changes: 9 additions & 7 deletions mount-helper/install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,19 @@ _install_app() {
log "Installing package $PACKAGE_NAME"
eval "$LINUX_INSTALL_APP $PACKAGE_NAME"
check_result "Problem installing package: $PACKAGE_NAME"
}

_install_apps() {
apps=($@)
log "Updating package $PACKAGE_NAME"
# Update the package
if [ "$LINUX_INSTALL_APP" == "$YUM" ]; then
eval "yum update -y"
eval "yum update -y $PACKAGE_NAME"
elif [ "$LINUX_INSTALL_APP" == "$APT" ]; then
eval "apt-get update -y"
eval "apt-get install --only-upgrade -y $PACKAGE_NAME"
elif [ "$LINUX_INSTALL_APP" == "$ZYP" ]; then
eval "zypper update -y"
eval "zypper update -y $PACKAGE_NAME"
fi
}

_install_apps() {
apps=($@)
for app in "${apps[@]}"; do
if grep -q -i "strongswan" <<< "$app"; then
check_available_version "$app" $MIN_STRONGSWAN_VERSION
Expand Down

0 comments on commit ea05d8f

Please sign in to comment.