Merge pull request #197 from that0n3guy/textFileBusy
added sync to prevent 'text file busy' on slow filesystems
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user