fix(moonraker.sh): remove polkit before deleting moonraker dir
Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
@@ -375,8 +375,9 @@ function remove_moonraker_env() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function remove_moonraker_polkit() {
|
function remove_moonraker_polkit() {
|
||||||
|
[ ! -d "${MOONRAKER_DIR}" ] && return
|
||||||
status_msg "Removing all Moonraker PolicyKit rules ..."
|
status_msg "Removing all Moonraker PolicyKit rules ..."
|
||||||
/bin/bash "${HOME}/moonraker/scripts/set-policykit-rules.sh" --clear
|
/bin/bash "${MOONRAKER_DIR}/scripts/set-policykit-rules.sh" --clear
|
||||||
ok_msg "Done!"
|
ok_msg "Done!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user