
- 为 1.sh 添加系统配置、Docker 安装、SSH 密钥和别名配置功能 - 新增 alpine/upgrade.sh 用于 Alpine Linux 系统更新和维护 - 新增 debian/upgrade.sh 用于 Debian 系统更新和维护
13 lines
272 B
Bash
13 lines
272 B
Bash
#!/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
|