diff --git a/install b/install index 538debe..740b059 100755 --- a/install +++ b/install @@ -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