Webmail Error (Oops… something went wrong!)

its a bash script and you trigger it with sh. also as root, you dont need to run sudo. So just run the script with ./migrate-roundcube.sh