2023-05-29 20:41:12 +02:00
|
|
|
all: build
|
|
|
|
|
|
|
|
build:
|
|
|
|
shards build
|
|
|
|
|
|
|
|
NAME ?= John
|
|
|
|
EMAIL ?= john@example.com
|
|
|
|
PHONE ?= 0707070707
|
2023-06-08 17:33:43 +02:00
|
|
|
|
|
|
|
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)
|
2023-05-29 20:41:12 +02:00
|
|
|
|
|
|
|
add-user:
|
|
|
|
./bin/authc user add $(NAME) $(EMAIL) $(PHONE) -k $(PASSWORD_FILE)
|