Merge pull request #197 from that0n3guy/textFileBusy

added sync to prevent 'text file busy' on slow filesystems
This commit is contained in:
Ric Harvey
2017-12-02 18:57:29 +00:00
committed by GitHub

View File

@@ -187,7 +187,7 @@ fi
if [[ "$RUN_SCRIPTS" == "1" ]] ; then
if [ -d "/var/www/html/scripts/" ]; then
# make scripts executable incase they aren't
chmod -Rf 750 /var/www/html/scripts/*
chmod -Rf 750 /var/www/html/scripts/*; sync;
# run scripts in number order
for i in `ls /var/www/html/scripts/`; do /var/www/html/scripts/$i ; done
else