mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
ed
d
This commit is contained in:
1 parent
80c10035bf
commit
2ad8397ad6
2 files changed
+1
-17
No files matched your search
@@ -1,16 +0,0 @@
|
||||
# Update Apt-cache
|
||||
sudo apt-get update
|
||||
|
||||
# install needed packages
|
||||
sudo apt install python3 cron cron-apt crontab python3-crontab -y
|
||||
|
||||
# enable system services
|
||||
sudo systemctl enable cron
|
||||
sudo systemctl start cron
|
||||
|
||||
# Echo the command below into the file /etc/crontab
|
||||
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'
|
||||
0 */1 * * * root mount -a | sudo tee -a /etc/crontab
|
||||
|
||||
#makes sure the nas is mounted
|
||||
@@ -22,7 +22,7 @@ sudo systemctl stop cron
|
||||
# Added new line to test.
|
||||
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 -a /etc/crontab #makes sure the nas is mounted
|
||||
0 */1 * * * root mount -a | sudo tee -a /etc/crontab #makes sure the nas is mounted
|
||||
|
||||
# Restart the cron service to apply the new cron job
|
||||
sudo systemctl start cron
|
||||
Reference in new issue
Block a user