This commit is contained in:
hl committed 2024-11-04 05:05:53 +08:00
1 parent 52d4f440d0
commit c82fc23f0e
1 file changed
+7 -7
+7 -7
View File
@@ -61,6 +61,13 @@ 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
echo -e "Enabled: yes
@@ -85,13 +92,6 @@ 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
else
rm /etc/apt/sources.list.d/* || true
fi
command="nala"
apt update
apt install -y $command || command="apt"