Пути klippy поменяны на /home/pi/.klippy

This commit is contained in:
Nikolay Kopitonenko 2024-02-17 01:22:49 +03:00
parent a906e3d809
commit 379024f224
2 changed files with 11 additions and 1 deletions

View File

@ -109,7 +109,14 @@ file:
contents: | contents: |
KLIPPY_USER=pi KLIPPY_USER=pi
KLIPPY_EXEC=/home/pi/klippy-env/bin/python KLIPPY_EXEC=/home/pi/klippy-env/bin/python
KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/printer.cfg -I /tmp/klippy -a /tmp/klippy.sock -l /tmp/klippy.log" KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/printer.cfg -I /home/pi/.klippy/pty -a /home/pi/.klippy/sock -l /home/pi/.klippy/log"
/home/pi/.klippy:
exists: true
filetype: directory
owner: pi
group: pi
mode: "0755"
/home/pi/3dscreen: /home/pi/3dscreen:
exists: true exists: true

View File

@ -49,6 +49,9 @@ mkdir -p /home/pi/printer_hw /home/pi/printer_soft /home/pi/printer
chown -R 0:0 /home/pi/printer_hw /home/pi/printer_soft chown -R 0:0 /home/pi/printer_hw /home/pi/printer_soft
chown pi:pi /home/pi/printer /home/pi/printer_data/variables.cfg chown pi:pi /home/pi/printer /home/pi/printer_data/variables.cfg
mkdir -p /home/pi/.klippy
chown pi:pi /home/pi/.klippy
install -m440 -o 0 -g 0 $ConfigsHome/etc/sudoers.d/010_pi-nopasswd /etc/sudoers.d/010_pi-nopasswd install -m440 -o 0 -g 0 $ConfigsHome/etc/sudoers.d/010_pi-nopasswd /etc/sudoers.d/010_pi-nopasswd
[ -e /home/pi/.octoprint/plugins/OctoprintKlipperPlugin ] && { [ -e /home/pi/.octoprint/plugins/OctoprintKlipperPlugin ] && {