From 68f8b141c00d9c6faac3581b42655831226c140f Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Fri, 28 Jun 2024 20:23:59 +0200 Subject: [PATCH] migration-file --- makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makefile b/makefile index 110d46e..05bc98c 100644 --- a/makefile +++ b/makefile @@ -44,6 +44,8 @@ validate:; $(Q)./bin/authc user validate $(NAME) $(ACTIVATION_KEY) get-user:; $(Q)./bin/authc user get $(NAME) $(LOGIN_OPT) USER_DB ?= /tmp/authd-migration-user-db.txt +$(USER_DB): ; cat /tmp/usrdb | awk '{ print $$1 "\t" $$2 }' | sort | uniq > $(USER_DB) +migration-file: $(USER_DB) migrate-user:; ./bin/authc user migrate $(NAME) $(PASSWORD_HASH) $(LOGIN_OPT) migrate-all-users:; ./bin/authc migration-script $(USER_DB) $(LOGIN_OPT)