Skip to content

Commit

Permalink
Updating install script to support RHEL
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcc committed Nov 25, 2023
1 parent 745d221 commit fbfc632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/linux/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ install_package() {
# Determine the package name, extension, and installer command based on OS and architecture
if [ "$os" = "debian" ]; then
package_extension=".deb"
installer_command="$SUDO dpkg -i"
installer_command="${SUDO} dpkg -i"
case $arch in
x86_64) package_name="cloudcored_${version}_linux_amd64${package_extension}" ;;
aarch64) package_name="cloudcored_${version}_linux_arm64${package_extension}" ;;
armv7l) package_name="cloudcored_${version}_linux_arm5${package_extension}" ;;
esac
elif [ "$os" = "rhel" ] && [ "$arch" = "aarch64" ]; then
package_extension=".rpm"
installer_command="$SUDO rpm -i"
installer_command="${SUDO} rpm -i"
package_name="cloudcored_${version}_linux_aarch64${package_extension}"
else
echo "Unsupported OS or architecture: $os, $arch"
Expand Down

0 comments on commit fbfc632

Please sign in to comment.