Commit graph

3 commits

Author SHA1 Message Date
c3c5f36ffc
refactor(config): replace temp file usage with temp dir
Updated the saving mechanism for temporary configuration files by utilizing a temporary directory instead of a named temporary file. This change streamlines file handling and avoids potential issues related to file name collisions.

Improves reliability of configuration updates by ensuring a cleaner and more isolated temporary workspace, which enhances process safety and consistency.
2024-07-18 18:46:05 +02:00
b60efb3f96
feat: add optional config path argument to script
Introduced a `--config_path` parameter to allow specifying a custom path for the Wireguard configuration file. Defaults to `/etc/wireguard/{interface}.conf` if not provided. This enhances flexibility for different deployment environments and use cases.
2024-07-18 18:37:56 +02:00
5bfd82aa6b
feat: automate Wireguard config updates with new script
Introduce a new script to streamline the process of updating local
Wireguard configuration by automating the replacement of the [Peer]
section. This script executes a remote setup script, reads the existing
config file, replaces the [Peer] section, and applies the updated
configuration seamlessly.

Addresses the need for a more efficient and error-free method to keep
local Wireguard settings in sync with remote server setups, enhancing
reliability and maintainability.
2024-07-18 18:26:00 +02:00