makefile: setup and run-authd rules.
parent
1f2f72fba8
commit
683bcb5970
10
makefile
10
makefile
|
@ -6,7 +6,15 @@ build:
|
|||
NAME ?= John
|
||||
EMAIL ?= john@example.com
|
||||
PHONE ?= 0707070707
|
||||
PASSWORD_FILE ?= /tmp/PASSWORD
|
||||
|
||||
PASSWORD_FILE ?= /tmp/PASSWORD
|
||||
DATA_DIRECTORY ?= /tmp/DATA-AUTHD
|
||||
|
||||
setup:
|
||||
@[ -f $(PASSWORD_FILE) ] || echo -n "coucou" > $(PASSWORD_FILE)
|
||||
|
||||
run-authd: setup
|
||||
./bin/authd -k /tmp/PASSWORD -R -E --storage $(DATA_DIRECTORY)
|
||||
|
||||
add-user:
|
||||
./bin/authc user add $(NAME) $(EMAIL) $(PHONE) -k $(PASSWORD_FILE)
|
||||
|
|
Loading…
Reference in New Issue