19 lines
506 B
Makefile
19 lines
506 B
Makefile
PASSWORD_FILE ?= /tmp/PASSWORD
|
|
DATA_DIRECTORY ?= /tmp/db-authd
|
|
|
|
run-authd: setup
|
|
@echo "running authd without reading the configuration file"
|
|
|
|
@# Usage example.
|
|
$(Q)$(LOC)authd -n -k $(PASSWORD_FILE) -R -E \
|
|
--storage-directory $(DATA_DIRECTORY) \
|
|
--recreate-indexes \
|
|
--service-name "auth"
|
|
|
|
# First user always is the admin.
|
|
add-first-user:; $(Q)$(LOC)authctl bootstrap $(NAME) $(EMAIL)
|
|
|
|
setup:; @[ -f $(PASSWORD_FILE) ] || echo -n "coucou" > $(PASSWORD_FILE)
|
|
|
|
wipe-db:; rm -r $(DATA_DIRECTORY)
|