#!/usr/bin/bash

if [[ "$EUID" -eq 0 ]] then
    echo "DO NOT RUN THIS SCRIPT AS ROOT!"
    echo "DO NOT RUN THIS SCRIPT AS ROOT!"
    echo "DO NOT RUN THIS SCRIPT AS ROOT!"
    echo "DO NOT RUN THIS SCRIPT AS ROOT!"
    echo "DO NOT RUN THIS SCRIPT AS ROOT!"
    exit
fi

sudo systemctl disable apt-daily.service apt-daily-upgrade.service rpi-eeprom-update.service apt-daily.timer apt-daily-upgrade.timer

sudo apt remove apt-listchanges -y

sudo cp ./10periodic /etc/apt/auth.conf.d
sudo chmod a+rw /etc/apt/auth.conf.d/10periodic
