mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
14 lines
399 B
Bash
14 lines
399 B
Bash
# 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="alert@tyates.one"
|
|
0 */6 * * * root /home/traver/public-setupfiles/updates_scripts/updates.sh' | sudo tee -a /etc/crontab
|