diff --git a/weekly_update.sh b/weekly_update.sh new file mode 100644 index 0000000..b9cb0ab --- /dev/null +++ b/weekly_update.sh @@ -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