WIP add scripts

This commit is contained in:
Tanguy MAZE
2018-12-13 18:51:03 +01:00
parent 2fd6ee2186
commit 2e94aefbc0
4 changed files with 58 additions and 2 deletions

6
files/update_script.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/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