apt updates

This commit is contained in:
2023-07-04 11:05:21 +02:00
parent 2c3071763d
commit cb9858a717

View File

@@ -12,6 +12,11 @@ rm /tmp/crontab.temp
#Better logon-message
figlet $(hostname)>/etc/motd
#Apt Updates
curl https://git.de-roo.org/DEROO/apt-update/raw/branch/main/apt-update.sh -o /usr/local/bin/apt-update.sh
chown a+x /usr/local/bin/apt-update.sh
echo 0 0 * * * root /usr/local/bin/apt-update.sh >> /etc/crontab
#SNMP things. N.B.: replace VULHIERDELOCATIEIN later
cat > /etc/snmp/snmpd.conf << 'EOF'
sysLocation VULHIERDELOCATIEIN
@@ -39,3 +44,4 @@ chmod a+x /usr/bin/distro
echo @reboot root chmod 444 /sys/devices/virtual/dmi/id/product_serial >> /etc/crontab
chmod 444 /sys/devices/virtual/dmi/id/product_serial
systemctl restart snmpd