This commit is contained in:
hl 2024-11-04 05:08:21 +08:00
parent c82fc23f0e
commit 1aedc4dbd5

13
init.sh
View File

@ -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"