If you change
Code:
SITES='
/home/www/site-1
/home/www/site-2
/home/www/site-3
'
to:
Code:
SITES=${SITES:-'
/home/www/site-1
/home/www/site-2
/home/www/site-3
'}
You can also override the default list of sites by exporting the SITES environment variable before you run the script. E.g.
$ SITES="/a /b /c"; export SITES; run-script-here
. Other variations of possible, if you read the shells manual page about expansions.
__________________
My
Journal
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.