From 1aedc4dbd5b8b759f70e0b4b447e3a1602f935e0 Mon Sep 17 00:00:00 2001 From: hl Date: Mon, 4 Nov 2024 05:08:21 +0800 Subject: [PATCH] update --- init.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/init.sh b/init.sh index 4368a44..9b1e94b 100755 --- a/init.sh +++ b/init.sh @@ -61,14 +61,8 @@ configure(){ echo " HostKeyAlgorithms ssh-ed25519,ssh-rsa,rsa-sha2-256" >> /etc/ssh/ssh_config echo " PubkeyAcceptedKeyTypes ssh-ed25519,ssh-rsa,rsa-sha2-256" >> /etc/ssh/ssh_config - if [ $FOR_PVE -eq 1 ]; then - echo "deb $PVE_URL bookworm pve-no-subscription" | \ - tee /etc/apt/sources.list.d/pve-no-subscription.list - else - rm /etc/apt/sources.list.d/* || true - fi - rm /etc/apt/sources.list || true + rm /etc/apt/sources.list.d/* || true echo -e "Enabled: yes Types: deb @@ -92,6 +86,11 @@ Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg #deb $SEC_URL $OS_CODE-security main contrib non-free non-free-firmware #" | tee /etc/apt/sources.list + if [ $FOR_PVE -eq 1 ]; then + echo "deb $PVE_URL bookworm pve-no-subscription" | \ + tee /etc/apt/sources.list.d/pve-no-subscription.list + fi + command="nala" apt update apt install -y $command || command="apt"