Skip to content

Conversation

kmcbride3
Copy link

This pull request introduces a configuration persistence mechanism in the renew.sh script to ensure that user configurations are not lost during server reboots or VIB upgrades. The changes include logic for backing up and restoring the renew.cfg file, as well as handling multiple backup versions.

Configuration persistence enhancements:

  • Added logic to back up the renew.cfg file to /etc/w2c-letsencrypt/renew.cfg.bak and maintain an older backup version (renew.cfg.bak.old) to ensure configuration safety when configuration changes are made.
  • Implemented a mechanism to restore the renew.cfg file from the latest backup if the main configuration file is missing but a backup exists.

- Implements automatic backup and restore logic for renew.cfg to ensure user configuration is preserved across VIB upgrades or accidental deletion.
- Stores backups in /etc/w2c-letsencrypt, a persistent location.
- Rotates backups: keeps latest (.bak) and previous (.bak.old) versions.
- Restores renew.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant