新增系统维护脚本,完善系统初始化和升级工具集
- 为 1.sh 添加系统配置、Docker 安装、SSH 密钥和别名配置功能 - 新增 alpine/upgrade.sh 用于 Alpine Linux 系统更新和维护 - 新增 debian/upgrade.sh 用于 Debian 系统更新和维护
This commit is contained in:
12
debian/upgrade.sh
vendored
Normal file
12
debian/upgrade.sh
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive &&
|
||||
apt -qq update &&
|
||||
apt -qq upgrade -y &&
|
||||
apt -qq full-upgrade -y &&
|
||||
apt -qq autoremove &&
|
||||
apt -qq autoclean &&
|
||||
apt clean &&
|
||||
systemctl --failed &&
|
||||
apt -qq install needrestart -y &&
|
||||
needrestart -q -r l
|
Reference in New Issue
Block a user