Правки путей

This commit is contained in:
Nikolay Kopitonenko 2024-02-16 13:25:25 +03:00
parent 507d1a5a82
commit a9fee1095d
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
GITEA_BASE="https://app.3diy.ru:9999/3diy"
HomePi="/home/pi"
SetupHome="$HomePi/.setup"
InstallHome="$SetupHome/install"
InstallHome="$SetupHome/installer"
configsHome="$SetupHome/cfg"
ConfigsHome=${MY_ConfigsHome:-$configsHome}
@ -22,6 +22,8 @@ set -x
(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
@ -31,8 +33,6 @@ set -x
[ -e /home/pi/printer_hw/filament_sensor.cfg ] || \
install -m644 -o 0 -g 0 $ConfigsHome/home/pi/printer_hw/filament_sensor.cfg /home/pi/printer_hw/filament_sensor.cfg
mkdir -p /home/pi/printer_hw /home/pi/printer_soft /home/pi/printer
[ -e /home/pi/printer_hw/hw.cfg ] || \
touch /home/pi/printer_hw/hw.cfg