bash script Syntax error: word unexpected (expecting "do")
Why do you have
/home/$dbuser/.dropbox-dist/dropboxd
or replacing variables.
/home/root/.dropbox-dist/dropboxd
Shouldn't it be
/root/.dropbox-dist/dropboxd
eg
/$dbuser/.dropbox-dist/dropboxd
Are you seriously allowing dropboxes in /root
?
Also why a for dbuser in DROPBOX_USERS; do
reassign? rather than
dbuser=$DROPBOX_USERS