Skip to content

Commit

Permalink
install: update location of policy-rules script
Browse files Browse the repository at this point in the history
Signed-off-by:  Eric Callahan <[email protected]>
  • Loading branch information
Arksine committed Sep 5, 2024
1 parent 8df9890 commit d1c2dcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/install-moonraker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ check_polkit_rules()
report_status "Installing PolKit Rules"
polkit_script="${SRCDIR}/scripts/set-policykit-rules.sh"
if [ $IS_SRC_DIST != "y" ]; then
polkit_script="${PYTHONDIR}/share/moonraker"
polkit_script="${polkit_script}/scripts/set-policykit-rules.sh"
py_bin="$PYTHONDIR/bin/python"
pkg_path="$( $py_bin -c 'import moonraker; print(moonraker.__path__[0])')"
polkit_script="${pkg_path}/scripts/set-policykit-rules.sh"
fi
if [ -f "$polkit_script" ]; then
set +e
Expand Down

0 comments on commit d1c2dcc

Please sign in to comment.