Ok, I have been checking the code in the indicated lines:
Bash:
712 MYSQL_CMD="`which mysql` -u root"
713 OUT=`echo "show databases" | $MYSQL_CMD 2>&1`
I guess the problem is due that in your server it is not possible for a sudo user to access the MySQL database without password, is it correct?
Regarding the line 743 I'm going to open an issue for analyze and solve it.
Then, with the changes you have made to the script, have you been able to successfully install and run your own FWCloud platform?
In order to avoid this annoying installation problems that occasionally arise, we are preparing a docker container with a preinstalled FWCloud and make it available in the official docker repositories. We will post a message in the announcements list when ready.
Thank you very much for your report.