8e87e65 Re-order tasks.restore_pkcs11_modules() to run earlier

Authored and Committed by rcritten 4 years ago
    Re-order tasks.restore_pkcs11_modules() to run earlier
    
    It was executed after restore_all_files() so PKCS11_MODULES was
    already restored so that part was a no-op, but the redhat
    restore_pkcs11_modules() also calls unlink() on each restored
    file so basically the file would be restored, unlinked, then
    since it was already restored, skipped.
    
    By moving the call to restore_pkcs11_modules() earlier it can
    do the expected restoration properly.
    
    https://pagure.io/freeipa/issue/8034
    
    Signed-off-by: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>