Владелец /home/pi/printer.cfg - юзер pi (надо, чтоб записывать карту стола)

This commit is contained in:
Nikolay Kopitonenko 2024-02-17 01:58:38 +03:00
parent 379024f224
commit 05c0886768
2 changed files with 4 additions and 3 deletions

View File

@ -2,8 +2,8 @@ file:
/home/pi/printer.cfg:
exists: true
filetype: file
owner: root
group: root
owner: pi
group: pi
mode: "0644"
contents:
- "[include printer_hw/hw.cfg]"

View File

@ -27,7 +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 0 -g 0 $ConfigsHome/home/pi/printer.cfg /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
[ -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