Skip to content

Commit

Permalink
chore: Remove yum update in favor of makecache
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefferson committed Jan 23, 2024
1 parent 27fffb9 commit ef0af56
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions scripts/rpm/script_generator/base_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ fi
# Check for availability of dnf or yum
if command_exists dnf; then
log "dnf available, updating..." "info"
dnf update -y
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info"
exit 0
elif command_exists yum; then
log "yum available, updating..." "info"
yum update -y
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info"
else
handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_18.x
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ fi
# Check for availability of dnf or yum
if command_exists dnf; then
log "dnf available, updating..." "info"
dnf update -y
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info"
exit 0
elif command_exists yum; then
log "yum available, updating..." "info"
yum update -y
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info"
else
handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_20.x
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ fi
# Check for availability of dnf or yum
if command_exists dnf; then
log "dnf available, updating..." "info"
dnf update -y
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info"
exit 0
elif command_exists yum; then
log "yum available, updating..." "info"
yum update -y
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info"
else
handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_21.x
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ fi
# Check for availability of dnf or yum
if command_exists dnf; then
log "dnf available, updating..." "info"
dnf update -y
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info"
exit 0
elif command_exists yum; then
log "yum available, updating..." "info"
yum update -y
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info"
else
handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_current.x
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ fi
# Check for availability of dnf or yum
if command_exists dnf; then
log "dnf available, updating..." "info"
dnf update -y
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info"
exit 0
elif command_exists yum; then
log "yum available, updating..." "info"
yum update -y
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info"
else
handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager."
Expand Down
4 changes: 2 additions & 2 deletions scripts/rpm/setup_lts.x
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ fi
# Check for availability of dnf or yum
if command_exists dnf; then
log "dnf available, updating..." "info"
dnf update -y
dnf makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'dnf install nodejs -y' to complete the installation." "info"
exit 0
elif command_exists yum; then
log "yum available, updating..." "info"
yum update -y
yum makecache --disablerepo="*" --enablerepo="nodesource-nodejs" --enablerepo="nodesource-nsolid"
log "Repository is configured and updated. Run 'yum install nodejs -y' to complete the installation." "info"
else
handle_error 1 "Neither yum nor dnf package manager was found. Please update your system using your package manager."
Expand Down

0 comments on commit ef0af56

Please sign in to comment.