authd/mk/setup.mk

19 lines
504 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.
add-first-user:; $(Q)$(LOC)authc bootstrap $(NAME) $(EMAIL)
setup:; @[ -f $(PASSWORD_FILE) ] || echo -n "coucou" > $(PASSWORD_FILE)
wipe-db:; rm -r $(DATA_DIRECTORY)