From c465c9b7530b9ba3a1d2f28c57c4628905abd4a2 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Fri, 17 Jul 2020 11:45:55 +0200 Subject: [PATCH] #1346 execute from /home/admin --- home.admin/_bootstrap.provision.sh | 7 +++++-- home.admin/assets/custom-installs.sh | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home.admin/_bootstrap.provision.sh b/home.admin/_bootstrap.provision.sh index f187bd4e3..d60c019ac 100644 --- a/home.admin/_bootstrap.provision.sh +++ b/home.admin/_bootstrap.provision.sh @@ -466,12 +466,15 @@ fi customInstallAvailable=$(sudo ls /mnt/hdd/app-data/custom-installs.sh 2>/dev/null | grep -c "custom-installs.sh") if [ ${customInstallAvailable} -gt 0 ]; then echo "Running the custom install script ..." >> ${logFile} - sudo chmod +x /mnt/hdd/app-data/custom-installs.sh + # copy script over to admin (in case HDD is not allowing exec) + cp -av /mnt/hdd/app-data/custom-install.sh /home/admin/custom-install.sh >> ${logFile} + # make sure script is executable + sudo chmod +x /home/admin/custom-install.sh >> ${logFile} + #run it sudo /mnt/hdd/app-data/custom-installs.sh >> ${logFile} else echo "No custom install script ... adding the placeholder." >> ${logFile} sudo cp /home/admin/assets/custom-installs.sh /mnt/hdd/app-data/custom-installs.sh - sudo chmod +x /mnt/hdd/app-data/custom-installs.sh fi # replay backup LND conf & tlscerts diff --git a/home.admin/assets/custom-installs.sh b/home.admin/assets/custom-installs.sh index 6612da6ff..3a3c0f80e 100644 --- a/home.admin/assets/custom-installs.sh +++ b/home.admin/assets/custom-installs.sh @@ -4,4 +4,6 @@ # This is the place to put all the install commands, cronjobs or editing of system configs # for your personal modifications of RaspiBlitz +# note: use absolute paths if you point to specific files + echo "There are no custom user installs so far." \ No newline at end of file