mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
#1817 change temp name custom script for installs
This commit is contained in:
parent
cb5b4d696f
commit
7743bb7704
1 changed files with 4 additions and 4 deletions
|
@ -564,12 +564,12 @@ customInstallAvailable=$(sudo ls /mnt/hdd/app-data/custom-installs.sh 2>/dev/nul
|
||||||
if [ ${customInstallAvailable} -gt 0 ]; then
|
if [ ${customInstallAvailable} -gt 0 ]; then
|
||||||
echo "Running the custom install script .." >> ${logFile}
|
echo "Running the custom install script .." >> ${logFile}
|
||||||
# copy script over to admin (in case HDD is not allowing exec)
|
# copy script over to admin (in case HDD is not allowing exec)
|
||||||
sudo cp -av /mnt/hdd/app-data/custom-installs.sh /home/admin/custom-install.sh >> ${logFile}
|
sudo cp -av /mnt/hdd/app-data/custom-installs.sh /home/admin/custom-installs.sh >> ${logFile}
|
||||||
# make sure script is executable
|
# make sure script is executable
|
||||||
sudo chmod +x /home/admin/custom-install.sh >> ${logFile}
|
sudo chmod +x /home/admin/custom-installs.sh >> ${logFile}
|
||||||
# run it & delete it again
|
# run it & delete it again
|
||||||
sudo /home/admin/custom-install.sh >> ${logFile}
|
sudo /home/admin/custom-installs.sh >> ${logFile}
|
||||||
sudo rm /home/admin/custom-install.sh >> ${logFile}
|
sudo rm /home/admin/custom-installs.sh >> ${logFile}
|
||||||
echo "Done" >> ${logFile}
|
echo "Done" >> ${logFile}
|
||||||
else
|
else
|
||||||
echo "No custom install script ... adding the placeholder." >> ${logFile}
|
echo "No custom install script ... adding the placeholder." >> ${logFile}
|
||||||
|
|
Loading…
Add table
Reference in a new issue