Владелец /home/pi/printer.cfg - root:root, чтобы не менялся клиппером
This commit is contained in:
parent
05c0886768
commit
5642a09549
|
@ -2,15 +2,14 @@ file:
|
|||
/home/pi/printer.cfg:
|
||||
exists: true
|
||||
filetype: file
|
||||
owner: pi
|
||||
group: pi
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
contents:
|
||||
- "[include printer_hw/hw.cfg]"
|
||||
- "[include printer_soft/*.cfg]"
|
||||
- "[include 3dscreen/klipper/configs/*.cfg]"
|
||||
- "[include printer/*.cfg]"
|
||||
- "[bltouch]"
|
||||
|
||||
/home/pi/printer_hw/bed.cfg:
|
||||
exists: true
|
||||
|
|
4
install
4
install
|
@ -27,8 +27,8 @@ git config pull.rebase false
|
|||
mkdir -p /home/pi/printer_hw /home/pi/printer_soft /home/pi/printer
|
||||
|
||||
[ -e /home/pi/printer.cfg ] || \
|
||||
install -m644 -o pi -g pi $ConfigsHome/home/pi/printer.cfg /home/pi/printer.cfg
|
||||
chown pi:pi /home/pi/printer.cfg
|
||||
install -m644 -o 0 -g 0 $ConfigsHome/home/pi/printer.cfg /home/pi/printer.cfg
|
||||
chown 0:0 /home/pi/printer.cfg
|
||||
|
||||
[ -e /home/pi/printer_hw/bed.cfg ] || \
|
||||
install -m644 -o 0 -g 0 $ConfigsHome/home/pi/printer_hw/bed.cfg /home/pi/printer_hw/bed.cfg
|
||||
|
|
Loading…
Reference in New Issue