mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
Added cron file update
This commit is contained in:
1 parent
75761ffbc6
commit
9787b967c8
1 file changed
+10
@@ -0,0 +1,10 @@
|
|||||||
|
sudo apt update
|
||||||
|
sudo apt full-upgrade -y
|
||||||
|
sudo apt install cron cron-apt -y
|
||||||
|
sudo systemctl enable cron
|
||||||
|
sudo systemctl stop cron
|
||||||
|
|
||||||
|
echo "MAILTO="alerts@tyates.one"
|
||||||
|
0 */6 * * * root apt-get update && apt-get -y -d full-upgrade && apt-get autoremove -y" >> /etc/crontab
|
||||||
|
|
||||||
|
sudo systemctl start cron
|
||||||
Reference in new issue
Block a user