Commit Graph

562 Commits

Author SHA1 Message Date
th33xitus
be570ee8de refactor: backup_before_updates functions
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:49 +02:00
th33xitus
017738340d refactor: remove double declaration of function
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:49 +02:00
th33xitus
656eab580b refactor: refactor gcode_shell_command
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:49 +02:00
th33xitus
004f33f30b fix(moonraker.sh): script exits on multi instance setup during polkit installation
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:49 +02:00
th33xitus
d0a39b0751 style(backup.sh): remove unwanted echos
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:49 +02:00
th33xitus
04577e6f00 style: restructure install menu
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:49 +02:00
th33xitus
7a85f6f42d style: use darker magenta
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:49 +02:00
th33xitus
6688029ba3 fix: bug in order of operations
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:49 +02:00
th33xitus
60d36e8182 refactor: patch only necessary update manager sections upon webif install
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 21:00:41 +02:00
th33xitus
f1aaa7c54f refactor: visual tweaks
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:47 +02:00
th33xitus
c8864ea09f refactor: log-upload functions
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:47 +02:00
th33xitus
43ab12ed14 fix: typos
Signed-off-by: Dominik Willner th33xitus@gmail.com
2022-05-12 20:58:47 +02:00
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