authd/mk/setup.mk

19 lines
506 B
Makefile
Raw Normal View History

2024-11-30 12:02:01 +01:00
PASSWORD_FILE ?= /tmp/PASSWORD
2024-12-10 20:35:55 +01:00
DATA_DIRECTORY ?= /tmp/db-authd
2024-11-30 12:02:01 +01:00
2024-12-10 20:35:55 +01:00
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"
2024-11-30 12:02:01 +01:00
# First user always is the admin.
2024-12-11 11:34:45 +01:00
add-first-user:; $(Q)$(LOC)authctl bootstrap $(NAME) $(EMAIL)
2024-11-30 12:02:01 +01:00
setup:; @[ -f $(PASSWORD_FILE) ] || echo -n "coucou" > $(PASSWORD_FILE)
wipe-db:; rm -r $(DATA_DIRECTORY)