优化 upgrade.sh 脚本,调整配置输出格式并简化命令执行流程

This commit is contained in:
mini2024
2025-03-22 16:51:16 +08:00
parent 5fb92ad712
commit 56b9b917cd

17
debian/upgrade.sh vendored
View File

@ -28,17 +28,16 @@ EOF
# 启用自动更新 # 启用自动更新
dpkg-reconfigure -plow unattended-upgrades dpkg-reconfigure -plow unattended-upgrades
apt -qq update && apt -qq update
apt -qq upgrade -y && apt -qq upgrade -y
apt -qq full-upgrade -y && apt -qq full-upgrade -y
apt -qq autoremove && apt -qq autoremove
apt -qq autoclean && apt -qq autoclean
apt clean && apt clean
systemctl --failed && systemctl --failed
apt -qq install needrestart -y && apt -qq install needrestart -y
needrestart -r a needrestart -r a
################################################################################ ################################################################################
# needrestart --help # needrestart --help