19 lines
508 B
Bash
19 lines
508 B
Bash
#!/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
|