This is preferable to setting the WorkingDirectory item in
the systemd unit, as its possible to switch between git repos
and installed wheels without requiring root.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Moonraker no longer uses the curl http client backend. The curl
commandline client is still used in some scripts and thus has been
retained.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This prevents an upgrade from unintentionally populating
the config directory when a legacy install exists.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Additionally, rework the systemd unit so it is not necessary to
overwrite and reload systemd when changes are made to Moonraker's
arguments. Use a symbolic link for the executable and an environment
flle to supply the arguments.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The "-z" flag will run the install script without running the
systemctl command. This is useful for installations which
are done outside of the normal "boot" process.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Add the "moonraker-admin" supplementary group to the service unit
file. Check if polkit rules are available after installation, if not
advise the user that they may wish to run set-polkit-rules.sh.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Moonraker itself does not depend on nginx and it
is no longer required to install clients on the host.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This can create issues of the system includes conflicting packages. Create a symlink for the system "gpiod" instead.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
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>
Add python3-libgpiod dependency.
As this dependency requiress a rebuild of the python3 environment, add some command line options to the install script:
- "-r" will rebuild the virtualenv
- "-f" will force overwite the defaults file. By default an existing defaults file will not be modified.
- "-c <config_path>" will direct moonraker to use the supplied path for the config file.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
If Klipper is installed as systemd service, the script would fail and exit at step 6 (corrected that typo) when trying to stop Klipper via init.d.
Changing the used command to systemctl will be compatible with both init.d and systemd services.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>