update
This commit is contained in:
1 parent
c82fc23f0e
commit
1aedc4dbd5
1 file changed
+6
-7
@@ -61,14 +61,8 @@ configure(){
|
|||||||
echo " HostKeyAlgorithms ssh-ed25519,ssh-rsa,rsa-sha2-256" >> /etc/ssh/ssh_config
|
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
|
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 || true
|
||||||
|
rm /etc/apt/sources.list.d/* || true
|
||||||
|
|
||||||
echo -e "Enabled: yes
|
echo -e "Enabled: yes
|
||||||
Types: deb
|
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
|
#deb $SEC_URL $OS_CODE-security main contrib non-free non-free-firmware
|
||||||
#" | tee /etc/apt/sources.list
|
#" | 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"
|
command="nala"
|
||||||
apt update
|
apt update
|
||||||
apt install -y $command || command="apt"
|
apt install -y $command || command="apt"
|
||||||
|
|||||||
Reference in new issue
Block a user