mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-09-01 06:22:52 +08:00
优化 PVE Ceph 软件源配置脚本
This commit is contained in:
+3
-1
@@ -75,11 +75,12 @@ EOF
|
||||
```bash
|
||||
## 配置 PVE Ceph 免订阅软件源脚本
|
||||
$ if [ -f /etc/apt/sources.list.d/ceph.sources ]; then
|
||||
(
|
||||
. /etc/os-release
|
||||
CEPH_CODENAME=$(ceph -v | awk '/^ceph version / { print $(NF - 1); exit }')
|
||||
|
||||
if [ -z "$CEPH_CODENAME" ] || [ -z "${VERSION_CODENAME:-}" ]; then
|
||||
echo "无法确定 Ceph 或 Debian 版本代号。" >&2
|
||||
echo "Unable to determine Ceph or Debian codename." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -90,6 +91,7 @@ Suites: $VERSION_CODENAME
|
||||
Components: no-subscription
|
||||
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
|
||||
EOF
|
||||
)
|
||||
fi
|
||||
```
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
30 9 * * * /usr/bin/systemctl restart smartdns.service
|
||||
|
||||
|
||||
## Or when the smartdns plugin is installed
|
||||
## Or when the SmartDNS China List installer is installed
|
||||
|
||||
20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user