makefile: setup and run-authd rules.

master
Philippe Pittoli 2023-06-08 17:33:43 +02:00
parent 1f2f72fba8
commit 683bcb5970
1 changed files with 9 additions and 1 deletions

View File

@ -6,7 +6,15 @@ build:
NAME ?= John NAME ?= John
EMAIL ?= john@example.com EMAIL ?= john@example.com
PHONE ?= 0707070707 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: add-user:
./bin/authc user add $(NAME) $(EMAIL) $(PHONE) -k $(PASSWORD_FILE) ./bin/authc user add $(NAME) $(EMAIL) $(PHONE) -k $(PASSWORD_FILE)