Version 1 hinzugefügt

This commit is contained in:
scriptos 2024-04-13 21:46:58 +02:00
parent 5c2b712739
commit 1cc9b7bbbc

18
weekly_update.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
#Weekly Update
function update_and_clean {
apt update
apt full-upgrade -y
apt autoclean -y
apt autoremove -y
}
#START
wget --user download --password download https://pv1.media-techport.de/repos/ubuntu20.04-sources.list
mv /root/ubuntu20.04-sources.list /root/sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.orig
mv /root/sources.list /etc/apt/sources.list
sudo rm -rf /var/lib/apt/lists/*
apt clean
update_and_clean
cat /dev/null > ~/.bash_history && history -c && history -w
exit 0