From 1cc9b7bbbcb2823275185db97321d72240d09619 Mon Sep 17 00:00:00 2001 From: scriptos Date: Sat, 13 Apr 2024 21:46:58 +0200 Subject: [PATCH] =?UTF-8?q?Version=201=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weekly_update.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 weekly_update.sh 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