Fix openSUSE package management issues
- Make apt cleanup conditional for apt-based distros only - Change zypper options from -q to --quiet for compatibility - Add progress bar consistency for openSUSE updates
This commit is contained in:
12
setup.sh
12
setup.sh
@@ -387,8 +387,9 @@ update_system() {
|
|||||||
sudo pacman -Syu --noconfirm --quiet
|
sudo pacman -Syu --noconfirm --quiet
|
||||||
;;
|
;;
|
||||||
opensuse)
|
opensuse)
|
||||||
sudo zypper refresh -q
|
sudo zypper refresh --quiet
|
||||||
sudo zypper update -y -q
|
show_progress 5 10 "System Update"
|
||||||
|
sudo zypper update -y --quiet
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -732,7 +733,12 @@ main() {
|
|||||||
|
|
||||||
# Main installation
|
# Main installation
|
||||||
log_info "Starting installation process..."
|
log_info "Starting installation process..."
|
||||||
preflight_apt_cleanup
|
|
||||||
|
# Run apt cleanup only for apt-based distributions
|
||||||
|
if [[ "$DISTRO" == "ubuntu" || "$DISTRO" == "debian" ]]; then
|
||||||
|
preflight_apt_cleanup
|
||||||
|
fi
|
||||||
|
|
||||||
update_system
|
update_system
|
||||||
run_installation
|
run_installation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user