Files
public-setupfiles/cron-job-setup-files/README.md
T
WickedYodaandJarvis 0c62f7495a docs: add READMEs and wiki documentation for all directories
- Add comprehensive wiki documentation under .github/wiki/ (19 articles)
- Add READMEs to directories that lacked them
- Fix merge conflict markers in existing READMEs
- Update root readme.md with improved structure

Co-authored-by: Jarvis <jarvis@wickedyoda.local>
2026-09-04 12:31:11 -05:00

67 lines
1.2 KiB
Markdown

# cron-job-setup-files
## Overview
This directory contains scripts and documentation for configuring automatic cron jobs on Linux systems.
## Files
| File | Description |
|------|-------------|
| `setup_cron_job_updates.sh` | Install auto-updates via /etc/cron.d |
| `setup_cron_job_updates-nomount.sh` | Auto-updates without mount requirement |
| `CronUpdates-readme.txt` | Usage documentation |
## Usage
### Install System Updates
```bash
sudo ./setup_cron_job_updates.sh
```
### Install Without Mount Dependencies
```bash
sudo ./setup_cron_job_updates-nomount.sh
```
This version:
- Skips `mount -a` before updates
- Safer for systems without guaranteed mounts
---
## Cron Schedule
Default cron job (`/etc/cron.d/auto_updates`):
| Time | Command |
|------|---------|
| `0 */6 * * *` | `apt-get update && apt-get -y full-upgrade && apt-get autoremove -y` |
| `0 */1 * * *` | `mount -a` (if enabled) |
---
## Log Location
```
/var/log/auto_updates.log
```
---
## Environment Variables
For non-root execution, set:
```bash
MAILTO="alerts@tyates.one"
```
---
## References
- [Cron job setup](CronUpdates-readme.txt) for detailed documentation
- `setup_cron_clean.sh` in repository root for updated/cleaner version