WIP add scripts
This commit is contained in:
6
files/update_script.sh
Executable file
6
files/update_script.sh
Executable 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
|
Reference in New Issue
Block a user