If the exectuable in the virtualenv is not "python" attempt to
detect the python executable. Use the pip entry point for the
pip command.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Set the minimum value for the sync_rate to 1 second, rather
than above 1 second. When transitioning from a null spool
to a named spool clear tracked extrusion.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Require that "web" installations provide release info to validate
existing installations. For known web clients provide a fallback
that uses the manifest to validate the installation.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Do not report invalid if the remote or branch does not match
the configured values. In these conditions report them as
"repo_warnings" that frontends may display to the user.
Hard recovery now requires a recovery URL detected from the git
repo's "origin" remote. This closes a potential security issue where a
malicioius repo could be cloned over an installed repo.
Signed-off-by: Eric Callahan <arskine.code@gmail.com>
Removed trailing comma in the JSON-RPC request example for
"Get Server Config", as that will raise an error.
Signed-off-by: Carl Rothe (carlrothe@gmail.com)
This closes a securitiy vulernability where the client could
be used to download and save a file from any configured
location.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This wrapper is an object that may be used to build requests
procedurally rather than submit all request parameters in
a call to "request()", "get()", etc. This is primarily useful for
usage in a Jinja2 context.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Older versions of virtualenv include their own "site" module
that does not have the "getsitepackages" method. Add
a check to verify its presence before calling it.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The "attach" option now accepts templates, such templates
are passed the same context received by the body and title
options. Additionally it is possible to specify multiple
attachments by separating each attachment with a newline.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Adds the RatOS configurator to the default service list in machine.py so future installs of moonraker will allow the ratos configurator service to be managed from frontends.
Signed-off-by: Mikkel Schmidt <mikkel.schmidt@gmail.com>
On machines running instances of Moonraker and Klipper without
the default service names it is necessary to look up their unit names
using systemd.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>