mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
Update echo line
This commit is contained in:
1 parent
c396dd2c13
commit
281f0be34a
1 file changed
+7
-2
@@ -15,8 +15,13 @@ sudo systemctl start cron
|
||||
sudo systemctl stop cron
|
||||
|
||||
# Add the update and upgrade cron job to /etc/cron.d/
|
||||
echo 'MAILTO="alerts@tyates.one"
|
||||
0 */6 * * * root apt-get update && apt-get -y -d full-upgrade && apt-get autoremove -y && sudo apt-get clean -y && sudo apt-get purge -y' | sudo tee /etc/cron.d/auto_updates
|
||||
# Old line that doesnt work
|
||||
# echo 'MAILTO="alerts@tyates.one"
|
||||
# 0 */6 * * * root apt-get update && apt-get -y -d full-upgrade && apt-get autoremove -y && sudo apt-get clean -y && sudo apt-get purge -y' | sudo tee /etc/cron.d/auto_updates
|
||||
|
||||
# Added new line to test.
|
||||
echo '0 */6 * * * root apt-get update && apt-get -y -d full-upgrade && apt-get autoremove -y && sudo apt-get clean -y && sudo apt-get purge -y' | sudo tee -a /etc/crontab
|
||||
|
||||
|
||||
# Restart the cron service to apply the new cron job
|
||||
sudo systemctl start cron
|
||||
Reference in new issue
Block a user