Commit Graph

467 Commits

Author SHA1 Message Date
th33xitus
794072203f fix: typo
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-14 15:46:56 +02:00
th33xitus
7a7538bfbe refactor: factor out and refactor helper functions
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-14 15:16:17 +02:00
Kenneth Jiang
8d284179d8 Bugs primarily caused by the confusion between space-separated vars and arrays 2022-08-13 20:53:37 -07:00
Kenneth Jiang
7837a78c4b Get instance names from the ini file to be consistent with the rest of the KIAUH 2022-08-13 17:08:24 -07:00
Kenneth Jiang
88d3daf20e Separate getting instance names from config_folders to be more flexible 2022-08-13 17:07:04 -07:00
th33xitus
d79856b641 feat: add helper function to get all config directory names
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 18:12:52 +02:00
th33xitus
23c39d225a fix(obico.sh): fix regex for logfiles
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
7d5b4e7242 refactor(obico.sh): refactor obico status
initializes `is_linked` as true.
switches it to false as soon as the first non linked instance is detected. status is then printed as non linked in the main menu.

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
d11323d55d refactor(moonraker.sh): allow to ignore moonraker clients which have "moonraker" in their own name
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
cb53982cac refactor: refactor clone_and_update function into two separate ones
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
53e03254e7 fix: make correct use of do_action_service function
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
a9332a2b6e refactor: factor the menu title definition out into a separate function
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
fa2b728037 style: fix whitespace
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
99fa596183 shellcheck: fix SC2155
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
910c5867a6 shellcheck: fix SC2068
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
78cc8bbffb shellcheck: fix SC2155
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
th33xitus
181a5d965a shellcheck: fix SC2086
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-08-13 16:42:47 +02:00
Kenneth Jiang
992df950c3 Removed unused vars 2022-08-13 07:40:31 -07:00
Kenneth Jiang
433be6a678 A few more typos 2022-08-01 18:05:10 -07:00
Kenneth Jiang
db203d0321 Single-instance and multi-instance need to be treated differently 2022-08-01 17:49:32 -07:00
Kenneth Jiang
a619df2364 A few typos 2022-08-01 17:48:54 -07:00
Kenneth Jiang
ff9b563131 get_instance_name takes base_name now so that it won't confuse moonraker-obico as an instance of Moonraker 2022-08-01 16:11:01 -07:00
Kenneth Jiang
8f5bdf2707 Make the linking step more user-friendly 2022-08-01 14:30:36 -07:00
Kenneth Jiang
767f8e14f8 Streamline the Obico linking process in KIAUH 2022-08-01 06:46:06 -07:00
Kenneth Jiang
121dde5a95 The name extraction should work in case of service-name-with-hyphon-name.service 2022-07-30 07:38:10 -07:00
Kenneth Jiang
08842465b2 Changes to the KIAUH menu 2022-07-25 15:10:06 -07:00
Kenneth Jiang
efdaae436a Compare version for update 2022-07-25 15:09:35 -07:00
Kenneth Jiang
64058e96e2 Uninstall and update works 2022-07-25 14:04:03 -07:00
Kenneth Jiang
023103709d Status and installation worked. 2022-07-24 21:40:15 -07:00
th33xitus
d4207d710c fix: restart moonraker after moonraker.conf patch (fixes #225)
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-07-22 10:16:00 +02:00
th33xitus
6cb8d70b63 fix: replace generic nginx webui cfg by their respective ones
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-07-22 10:06:35 +02:00
th33xitus
ae011963da fix: install mainsail theme to correct folder (fixes #222)
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-07-20 22:41:42 +02:00
th33xitus
491d6f40bb refactor: move ini initialization to main_menu()
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-07-20 22:34:07 +02:00
th33xitus
8bbe2f79ea feat: save multi instance klipper names/identifier to kiauh.ini
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-07-20 22:33:33 +02:00
th33xitus
0bdf61a714 fix: do not install py2 packages if venv is py3 (fixes #211)
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-06-30 20:41:36 +02:00
th33xitus
b07a83c8ad fix: update all function (#204) (#217)
* fix: update all function (fixes #204)
* fix: replace non-existing `print_unkown_cmd` function

Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-06-30 11:08:09 +02:00
th33xitus
39e22acbed fix(octoprint.sh): script exiting without error message (fixes #216)
- the script was exiting without notifying the user that klipper has to be installed first

Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-06-26 08:48:38 +02:00
th33xitus
8ba46fa4ac fix(pretty_gcode.sh): use main instead of master (fixes #203)
- pgc uses main instead of master. so checking for origin/master leads to an error

Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-31 17:27:52 +02:00
th33xitus
d6b95c9d10 refactor(nginx.sh): refactor set_nginx_cfg()
- implements two dedicated nginx configs for mainsail and fluidd

Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-30 18:38:45 +02:00
th33xitus
fcf059df73 feat: KIAUH v4.0.0 (#191) 2022-05-29 20:11:15 +02:00
th33xitus
dd58229fee fix: bug in remove_klipperscreen() 2022-03-06 11:56:31 +01:00
th33xitus
4c083ceade fix: broken set_klipper_cfg_path function (#163) 2022-02-26 16:51:43 +01:00
th33xitus
259a6919f0 fix: link for theme data csv 2022-02-10 09:14:44 +01:00
th33xitus
4f7a49d85a fix: bug not updating all when selecting to do so.
* also make the confirm message more verbose and make it clear that KIAUH won't update any held back packages or any dist upgrades.
2022-02-07 14:47:36 +01:00
th33xitus
005a5061a7 chore: apply changes made in mainsailOS 0.6.1 2022-02-03 16:57:55 +01:00
th33xitus
634d795557 fix: bug not successfully copying new upstreams.conf and common_vars.conf 2022-01-31 12:00:57 +01:00
th33xitus
a14e321df9 fix: apply required changes due to introduction of PolicyKit and PackageKit in Moonraker 2022-01-29 23:06:02 +01:00
th33xitus
d049d4c770 script: remove unused functions 2022-01-08 21:48:38 +01:00
th33xitus
108cda3cd6 shellcheck: apply fixes for SC2086 2022-01-08 21:45:55 +01:00
th33xitus
d7de58f538 feat: check for apache2 and prompt for action 2022-01-08 20:57:47 +01:00