Files
VPS-scripts_Unattended-Secu…/conf.sh
Bram Prieshof db889eea18 Add 'conf.sh'
2020-02-27 14:48:35 +01:00

18 lines
561 B
Bash

###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