From db889eea18661fb6d190ab6f77799c93a24f4afa Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 27 Feb 2020 14:48:35 +0100 Subject: [PATCH] Add 'conf.sh' --- conf.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 conf.sh diff --git a/conf.sh b/conf.sh new file mode 100644 index 0000000..c5549d8 --- /dev/null +++ b/conf.sh @@ -0,0 +1,18 @@ +###Fetch Config +mrepo=https://git.ictmaatwerk.com/VPS-scripts/Unattended-Security-Updates +mbranch=master + + +###OS Detection +source /etc/os-release +if [ "$ID" = "debian" ]; then + LinVer=Debian +elif [ "$ID" = "ubuntu" ]; then + LinVer=Ubuntu +else + echo "this OS is not supported" +fi + +###Fetching Confgs +wget -t7 "$repo"/raw/branch/"$branch"/config/Universal_20auto-upgrades -O /etc/apt/apt.conf.d/20auto-upgrades > $OUTPUT 2>&1 +wget -t7 "$repo"/raw/branch/"$branch"/config/"$LinVer"_50unattended-upgrades -O /etc/apt/apt.conf.d/50unattended-upgrades > $OUTPUT 2>&1 \ No newline at end of file