Добавлен файл /home/pi/printer_data/variables.cfg
This commit is contained in:
parent
6c3666a161
commit
a906e3d809
|
@ -40,6 +40,13 @@ file:
|
|||
group: root
|
||||
mode: "0644"
|
||||
|
||||
/home/pi/printer_data/variables.cfg:
|
||||
exists: true
|
||||
filetype: file
|
||||
owner: pi
|
||||
group: pi
|
||||
mode: "0644"
|
||||
|
||||
/home/pi/printer_hw:
|
||||
filetype: directory
|
||||
exists: true
|
||||
|
|
7
install
7
install
|
@ -41,8 +41,13 @@ mkdir -p /home/pi/printer_hw /home/pi/printer_soft /home/pi/printer
|
|||
[ -e /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 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue