Commit Graph
5 Commits
Author SHA1 Message Date
Staubgeborener f34392bfd5 refactor(extension): adjust code in Klipper-Backup (#502)
* refactor(extension): clean up klipper backup extension code

- replace subprocess.run with remove_system_servicefunction,remove_with_sudo and cmd_sysctl_service
- add missing remove_moonraker_entry call
- remove unnecessary Logger commands

* refactor(extension): add  daemon-reload and reset-failed to klipper backup extension

* refactor(extension): remove unnecessary lines in klipper backup extension

* refactor(extension): adjust uninstall_service function in klipper backup extension

and also add some commentary

* refactor(extension): remove unnecessary try except block klipper backup extension

remove_with_sudo() function has it's own try except block, if an error occurs, the remaining code is not executed by raise statement anyway
2024-08-22 19:31:54 +02:00
Staubgeborener 9b2960594e refactor(extension): add new check to klipper backup extension (#498)
Also started using SYSTEMD variable instead of hardcoded path, reworked the crontab entry remove function and revised the code in general
2024-08-15 18:36:49 +02:00
Staubgeborener 93ba579232 refactor(klipper_backup): replace is_service_installed with service_instance_exists (#481)
* use service_instance_exists function

* change header in __init__.py

* remove is_service_installed function

* small fix
2024-06-19 20:17:52 +02:00
Staubgeborener a4b149c11a chore: remove test section and add new klipperbackup url in header (#467)
The old test branch will be deleted anyway
2024-05-08 18:44:26 +02:00
Staubgeborener 2c1c94c904 feat: Add Klipper-Backup to KIAUH (#457) 2024-04-19 17:58:41 +02:00