This manual step can be cut out, by checking for the existence of the file first, and adding the -c option if it isn't there. See apache.useradd for an example.