Путь самого инсталлера - $PWD; создаётся кастомный конфиг

This commit is contained in:
Nikolay Kopitonenko 2024-02-16 13:45:30 +03:00
parent a9fee1095d
commit 4241e059c2
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@
GITEA_BASE="https://app.3diy.ru:9999/3diy"
HomePi="/home/pi"
SetupHome="$HomePi/.setup"
InstallHome="$SetupHome/installer"
InstallHome="$PWD"
configsHome="$SetupHome/cfg"
ConfigsHome=${MY_ConfigsHome:-$configsHome}
@ -73,6 +73,9 @@ SCREEN_ARCHIVE=/home/pi/3dscreen.zip
[ -e /home/pi/3dscreen.settings.json ] || \
install -m644 -o 0 -g 0 $ConfigsHome/home/pi/3dscreen.settings.json /home/pi/3dscreen.settings.json
[ -e /home/pi/3dscreen.settings.json ] || \
touch /home/pi/3dscreen.custom.config.js
$InstallHome/install_helper