Update echo line

This commit is contained in:
WickedYoda committed 2023-09-06 14:12:32 -05:00
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