Looking at the script and the comments here it's pretty clear that the script is probably stalling when running localedef but the output from sh -x might still be useful to see exactly what arguments are being passed to localedef if nothing else, or it might not :)
Looking at the script and the comments here it's pretty clear that the script is probably stalling when running localedef but the output from sh -x might still be useful to see exactly what arguments are being passed to localedef if nothing else, or it might not :)