roger-skyline-1/files/update_script.sh
2018-12-13 18:51:03 +01:00

7 lines
275 B
Bash
Executable File

#!/bin/bash
# ajouter "0 4 * * 1 root <repertoire du script>/02" a /etc/crontab
printf "##### %s #####\n" "$(date)" >>/var/log/update_script.log
apt update >>/var/log/update_script.log 2>&1 && DEBIAN_FRONTEND=noninteractive apt upgrade -y >>/var/log/update_script.log 2>&1