added sync to prevent 'text file busy' on slow filesystems
This commit is contained in:
@@ -138,7 +138,7 @@ fi
|
|||||||
if [[ "$RUN_SCRIPTS" == "1" ]] ; then
|
if [[ "$RUN_SCRIPTS" == "1" ]] ; then
|
||||||
if [ -d "/var/www/html/scripts/" ]; then
|
if [ -d "/var/www/html/scripts/" ]; then
|
||||||
# make scripts executable incase they aren't
|
# 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
|
# run scripts in number order
|
||||||
for i in `ls /var/www/html/scripts/`; do /var/www/html/scripts/$i ; done
|
for i in `ls /var/www/html/scripts/`; do /var/www/html/scripts/$i ; done
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user