migration-file
parent
a64a3291ce
commit
68f8b141c0
2
makefile
2
makefile
|
@ -44,6 +44,8 @@ validate:; $(Q)./bin/authc user validate $(NAME) $(ACTIVATION_KEY)
|
||||||
get-user:; $(Q)./bin/authc user get $(NAME) $(LOGIN_OPT)
|
get-user:; $(Q)./bin/authc user get $(NAME) $(LOGIN_OPT)
|
||||||
|
|
||||||
USER_DB ?= /tmp/authd-migration-user-db.txt
|
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-user:; ./bin/authc user migrate $(NAME) $(PASSWORD_HASH) $(LOGIN_OPT)
|
||||||
migrate-all-users:; ./bin/authc migration-script $(USER_DB) $(LOGIN_OPT)
|
migrate-all-users:; ./bin/authc migration-script $(USER_DB) $(LOGIN_OPT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue