Commit bb7499c
feat(install): make backups optional via INSTALL_BACKUPS prompt
Adds top-level y/n gate before the B2 prompt block in 00-base.sh.
When INSTALL_BACKUPS=no:
- 50-backups.sh exits 0 immediately (and removes any previously
installed /usr/local/bin/backup.sh + /etc/cron.d/serverdeploy-backup
so toggling off actually uninstalls)
- No restic password file generated
- No nightly cron
GeoIP was already optional (GEOIP_ENABLED=no path was already
implemented in 45-geoip.sh, monitoring guards on GEOIP_ENABLED, and
10-caddy.sh writes a no-op (geoblock) placeholder so 'import geoblock'
in site files keeps working) — no changes needed there.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 36e88c0 commit bb7499c
2 files changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | | - | |
294 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
300 | 305 | | |
301 | 306 | | |
302 | 307 | | |
| |||
397 | 402 | | |
398 | 403 | | |
399 | 404 | | |
| 405 | + | |
400 | 406 | | |
401 | 407 | | |
402 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
0 commit comments