Files
Linux/debian/upgrade.sh
mini2024 909b41eb6c 修复 Debian 升级脚本的使用方法注释
- 更新 debian/upgrade.sh 脚本中的 URL 地址
- 确保使用方法注释指向正确的 Debian 升级脚本路径
2025-03-11 22:45:35 +08:00

18 lines
429 B
Bash

#!/usr/bin/env bash
#
# ...
#
# 使用方法:
# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/debian/upgrade.sh"; curl -fsSL "$URL" | bash || wget -q -O - "$URL" | 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