Убраны диры, которые ставит go installer

This commit is contained in:
Nikolay Kopitonenko 2024-03-15 21:11:31 +03:00
parent a7c6dbad69
commit a2a39b14bd
2 changed files with 2 additions and 23 deletions

View File

@ -7,7 +7,6 @@ file:
mode: "0644"
contents:
- "[include printer_hw/*.cfg]"
- "[include printer_soft/*.cfg]"
- "[include 3dscreen/klipper/configs/*.cfg]"
- "[include printer/*.cfg]"
@ -18,13 +17,6 @@ file:
group: root
mode: "0755"
/home/pi/printer_soft:
filetype: directory
exists: true
owner: root
group: root
mode: "0755"
/home/pi/printer_data:
filetype: directory
exists: true

17
install
View File

@ -24,21 +24,8 @@ git config pull.rebase false
(cd "$ConfigsHome" && 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
chown 0:0 /home/pi/printer.cfg
[ -e /home/pi/printer_soft/soft.cfg ] || \
touch /home/pi/printer_soft/soft.cfg
[ -e /home/pi/printer_data ] || {
mkdir /home/pi/printer_data
}
chown -R 0:0 /home/pi/printer_hw /home/pi/printer_soft
chown -R pi:pi /home/pi/printer /home/pi/printer_data
mkdir -p /home/pi/printer_hw
chown -R 0:0 /home/pi/printer_hw
mkdir -p /home/pi/.klippy
chown pi:pi /home/pi/.klippy