优化 upgrade.sh 脚本,调整配置输出格式并简化命令执行流程
This commit is contained in:
17
debian/upgrade.sh
vendored
17
debian/upgrade.sh
vendored
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user