#!/bin/bash export DEBIAN_FRONTEND='noninteractive' if (( $RANDOM % 20 == 0)); then apt-get -qq update apt-get -qq -y autoremove fi