mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-14 00:42:23 +00:00
Update customizable_post_install.sh
This commit is contained in:
parent
36cd83c796
commit
a88db8830b
@ -715,33 +715,10 @@ install_system_utils() {
|
|||||||
msg_info "$(translate "Installing") $package ($description)..."
|
msg_info "$(translate "Installing") $package ($description)..."
|
||||||
local install_success=false
|
local install_success=false
|
||||||
|
|
||||||
if command_exists apt; then
|
if apt install -y "$package" >/dev/null 2>&1; then
|
||||||
# Ya no necesitamos apt update aquí porque se hizo en ensure_repositories
|
install_success=true
|
||||||
if apt install -y "$package" >/dev/null 2>&1; then
|
|
||||||
install_success=true
|
|
||||||
fi
|
|
||||||
elif command_exists yum; then
|
|
||||||
if yum install -y "$package" >/dev/null 2>&1; then
|
|
||||||
install_success=true
|
|
||||||
fi
|
|
||||||
elif command_exists dnf; then
|
|
||||||
if dnf install -y "$package" >/dev/null 2>&1; then
|
|
||||||
install_success=true
|
|
||||||
fi
|
|
||||||
elif command_exists pacman; then
|
|
||||||
if pacman -S --noconfirm "$package" >/dev/null 2>&1; then
|
|
||||||
install_success=true
|
|
||||||
fi
|
|
||||||
elif command_exists zypper; then
|
|
||||||
if zypper install -y "$package" >/dev/null 2>&1; then
|
|
||||||
install_success=true
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
cleanup
|
|
||||||
msg_error "$(translate "No compatible package manager detected")"
|
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
if [ "$install_success" = true ]; then
|
if [ "$install_success" = true ]; then
|
||||||
@ -844,6 +821,7 @@ install_system_utils() {
|
|||||||
1) failed=$((failed + 1)) ;;
|
1) failed=$((failed + 1)) ;;
|
||||||
2) warning=$((warning + 1)) ;;
|
2) warning=$((warning + 1)) ;;
|
||||||
esac
|
esac
|
||||||
|
sleep 2
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -f ~/.bashrc ]; then
|
if [ -f ~/.bashrc ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user