scripts: minor fixes

Run the legacy install cleanup after Klipper is detected in install-moonraker.sh

Fix whitespace errros in uninstall-moonraker.sh

Signed-ff-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-12-06 07:28:11 -05:00
parent 1b997b7457
commit abbd02aa73
2 changed files with 3 additions and 3 deletions

View File

@ -132,8 +132,8 @@ done
# Run installation steps defined above
verify_ready
cleanup_legacy
check_klipper
cleanup_legacy
install_packages
create_virtualenv
install_script

View File

@ -25,7 +25,7 @@ remove_sudo_fix() {
echo "#### Removing sudo_fix"
sudo gpasswd -d $USER mnrkrsudo
sudo delgroup --only-if-empty mnrkrsudo
sudo rm -f /etc/sudoers.d/020-sudo-for-moonraker
sudo rm -f /etc/sudoers.d/020-sudo-for-moonraker
}
remove_files() {
@ -69,4 +69,4 @@ verify_ready
stop_service
remove_service
remove_files
remove_sudo_fix
remove_sudo_fix