Commit graph

4 commits

Author SHA1 Message Date
bc9c9aeb75
refactor: simplify executable path handling
Removed unnecessary os.path.realpath usage for sys.executable in
both manage_hetzner_servers.py and update_local_config.py. This
reduces complexity and potential for errors when resolving paths.

No significant changes to functionality. This change will make
scripts easier to maintain and execute.
2024-07-18 19:09:11 +02:00
5a64f31a1c
refactor: update script execution with sys.executable
Updated the script execution commands to use `sys.executable` instead
of a hard-coded "python" to ensure compatibility with different Python
environments. Additionally, refactored code for better readability
and consistency in formatting, particularly around argument parsing
and error handling in both manage_hetzner_servers.py and
update_local_config.py.

Improves deployment flexibility and code maintainability.
2024-07-18 19:07:02 +02:00
776e3e00ea
refactor: hardcode provider to Hetzner in script
Removed the --provider argument from the command-line parser and set the provider variable directly to "hetzner". Simplifies the script by removing an unnecessary user input field. Relevant for deployments exclusively using Hetzner.
2024-07-18 19:02:51 +02:00
aebc5adaf3
feat: add script to manage Hetzner servers
Introduce a new script to manage Hetzner servers which includes capabilities to list, update, and delete servers. The script integrates with the local Wireguard VPN configuration tool, running an update script and subsequently removing old servers. This automates the process, ensuring efficient server management and updated local configurations.
2024-07-18 18:58:17 +02:00