If a user already exists with the same name as the given user then the create_super_user function in steps.py would fail because the user already exists. This change makes the method idempotent, so that any existing user will be ignored and not cause an error.
I've tested this on my local environment and re-running the installer (using make all in the compose directory) no longer gives an error and allows the process to complete.
This fixes issue #45.
If a user already exists with the same name as the given user then the create_super_user function in steps.py would fail because the user already exists. This change makes the method idempotent, so that any existing user will be ignored and not cause an error.
I've tested this on my local environment and re-running the installer (using
make all
in thecompose
directory) no longer gives an error and allows the process to complete.This was discovered whilst investigating https://github.com/JiscRDSS/rdss-archivematica/issues/118.