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:
parent
1b997b7457
commit
abbd02aa73
|
@ -132,8 +132,8 @@ done
|
||||||
|
|
||||||
# Run installation steps defined above
|
# Run installation steps defined above
|
||||||
verify_ready
|
verify_ready
|
||||||
cleanup_legacy
|
|
||||||
check_klipper
|
check_klipper
|
||||||
|
cleanup_legacy
|
||||||
install_packages
|
install_packages
|
||||||
create_virtualenv
|
create_virtualenv
|
||||||
install_script
|
install_script
|
||||||
|
|
|
@ -25,7 +25,7 @@ remove_sudo_fix() {
|
||||||
echo "#### Removing sudo_fix"
|
echo "#### Removing sudo_fix"
|
||||||
sudo gpasswd -d $USER mnrkrsudo
|
sudo gpasswd -d $USER mnrkrsudo
|
||||||
sudo delgroup --only-if-empty 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() {
|
remove_files() {
|
||||||
|
@ -69,4 +69,4 @@ verify_ready
|
||||||
stop_service
|
stop_service
|
||||||
remove_service
|
remove_service
|
||||||
remove_files
|
remove_files
|
||||||
remove_sudo_fix
|
remove_sudo_fix
|
||||||
|
|
Loading…
Reference in New Issue