#1346 make sure custom-install is executable

This commit is contained in:
rootzoll 2020-07-17 01:59:13 +02:00
parent 5f20890080
commit 604c458749

View File

@ -466,10 +466,12 @@ 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
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