th33xitus
e32f618a6c
refactor: only execute chown on files that the user do not already own
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:47 +02:00
th33xitus
f46b1e7981
fix: small bug in chown command
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:46 +02:00
th33xitus
c009ee4382
refactor: rename telegram bot functions
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:46 +02:00
th33xitus
f1ad3c00f4
refactor(utilities.sh): refactor change hostname functions
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:46 +02:00
th33xitus
e358005a7f
refactor(utilities.sh): refactor system updates
...
- remove unused restart_nginx function
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
1955b260fb
refactor(utilities.sh): add logging to do_action_service function
...
- remove unused restart_nginx function
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
306586d283
refactor(nginx.sh): reword local scope variables
...
- fix typo for reading kiauh ini
- use different method for restarting nginx
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
7bcb876c58
refactor: remove octoprint disable prompt
...
the octoprint service itself does not cause any issues. so it is safe to have it still running besides mainsail or fluidd. only programs like haproxy, lighttps or apache2 cause issues in combination with nginx
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
b314bde2b4
refactor: fluidd installer
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
3fd1a6bf99
refactor: mainsail installer & mainsail theme installer
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
1cdd24d0de
refactor: mjgp-streamer installer
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
97d984a105
style: fix indentation
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
cdfc82ffcc
fix: typo
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
32b96b6fc1
fix: wrong status display
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
6f85ad6815
refactor: multiple
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
7d75a3f7fa
style(globals.sh): add quotes
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
c557d8df1e
refactor(octoprint.sh): octoprint instance setup
...
one dedicated env for each instance. allows independent installation of plugins. previously, all instances shared the same env and therefore all plugins.
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
efcd0dc12b
fix(octoprint.sh): typo in argument
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
c6e907ae99
fix(octoprint.sh): typos
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
fb9e6807b7
refactor(octoprint.sh): use utility function for checking tty and dialout usergroup
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
3731d3aed8
refactor: octoprint status
...
also remove unused functions
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
8af4564570
refactor: fluidd status
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
11d3939e92
refactor: mainsail status
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
35dc2c75e3
refactor: rework some klipperscreen functions
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
413abf003e
refactor: move python check to utilities.sh
...
also remove several unused service start and restart functions
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
67add53f27
refactor: rework moonraker telegram bot functions
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
d1a7673520
fix: make klipper install account for custom klipper repo
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
f362cdce8f
fix: dialog allowed a higher option than actually possible
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
02d0ce8a78
refactor: remove switch menu from advanced menu
...
this function got replaced by the custom klipper repo function
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
9c523e1ff6
refactor: tweak repo file and settings
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
af0f03008c
feat: custom klipper repos
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:45 +02:00
th33xitus
5f78228eb0
refactor: improve flash methods
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:00 +02:00
th33xitus
421dacf317
refactor: rename start_flash_mcu_sd to start_flash_sd
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
ea622be257
refactor: remove octoprint service toggle option
...
the octoprint process does not interfere with any moonraker/mainsail/fluidd instance. that option is therefore not really required anymore as haproxy is the real 'troublemaker'
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
b7d44f46bb
fix: bug in mcu index selection
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
b315eeb50c
style: add copyright and shellcheck ignores
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
f9e2ff89a4
refactor: flash_klipper.sh
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
46510f2b22
feat: allow klipper installation with python3
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
07af423fa3
fix: group dialout is required for klippers USB communication
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
63ef9a07db
refactor: update update_menu.sh and update functions
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
acd53953ae
refactor: update backup.sh
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
4bee1fc8d0
refactor: rewrite feature for changing config directory
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
8fce0f42ea
fix(main_menu.sh): fix menu
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
602822a852
fix(settings_menu.sh): fix menu
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
4cc8c33ee3
fix(utilities.sh): fix no such file or directory
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
5ba3476069
style(globals.sh): add comment, remove empty lines
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
85b533e703
feat: outsource globals in own file
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
8a293011c5
feat: read custom klipper config location from file
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
5e6edebaa6
refactor(network_functions.sh): some refactor
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00
th33xitus
314df68d35
refactor(backup.sh): some refactor
...
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:57:59 +02:00