Добавлен файл /home/pi/printer_data/variables.cfg

This commit is contained in:
Nikolay Kopitonenko 2024-02-16 18:19:34 +03:00
parent 6c3666a161
commit a906e3d809
2 changed files with 13 additions and 1 deletions

View File

@ -40,6 +40,13 @@ file:
group: root group: root
mode: "0644" mode: "0644"
/home/pi/printer_data/variables.cfg:
exists: true
filetype: file
owner: pi
group: pi
mode: "0644"
/home/pi/printer_hw: /home/pi/printer_hw:
filetype: directory filetype: directory
exists: true exists: true

View File

@ -41,8 +41,13 @@ mkdir -p /home/pi/printer_hw /home/pi/printer_soft /home/pi/printer
[ -e /home/pi/printer_soft/soft.cfg ] || \ [ -e /home/pi/printer_soft/soft.cfg ] || \
touch /home/pi/printer_soft/soft.cfg touch /home/pi/printer_soft/soft.cfg
[ -e /home/pi/printer_data/variables.cfg ] || {
mkdir /home/pi/printer_data
touch /home/pi/printer_data/variables.cfg
}
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 chown pi:pi /home/pi/printer /home/pi/printer_data/variables.cfg
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