added sync to prevent 'text file busy' on slow filesystems

This commit is contained in:
Peter O
2017-11-30 12:24:13 -06:00
parent 60b29b4842
commit c950011b34

View File

@@ -138,7 +138,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