From fd5293a05cb94a9a3cf72b272d6e56f139668381 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 23 Oct 2022 16:40:56 +0200 Subject: [PATCH] Fix password reset task --- Makefile | 16 ++++++++-------- docs/user_guide.md | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 266ae61..20db155 100644 --- a/Makefile +++ b/Makefile @@ -12,32 +12,32 @@ config: .PHONY: update update: - -docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv update --no-update-deps + -docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv update --no-update-deps .PHONY: prune-old-data prune-old-data: - -docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv prune-old-data + -docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv prune-old-data .PHONY: webfinger webfinger: - -docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv webfinger $(account) + -docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv webfinger $(account) .PHONY: move-to move-to: - -docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv move-to $(account) + -docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv move-to $(account) .PHONY: self-destruct self-destruct: - -docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv self-destruct + -docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv self-destruct .PHONY: reset-password reset-password: - -docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv reset-password + -docker run --rm -it --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv reset-password .PHONY: check-config check-config: - -docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv check-config + -docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv check-config .PHONY: compile-scss compile-scss: - -docker run --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv compile-scss + -docker run --rm --volume `pwd`/data:/app/data --volume `pwd`/app/static:/app/app/static microblogpub/microblogpub inv compile-scss diff --git a/docs/user_guide.md b/docs/user_guide.md index 104340b..e2f1eb6 100644 --- a/docs/user_guide.md +++ b/docs/user_guide.md @@ -333,13 +333,13 @@ make compile-scss ### Password reset -If have lost your password, you can generate a new one using the `password-reset` task. +If have lost your password, you can generate a new one using the `reset-password` task. #### Python edition ```bash # shutdown supervisord -poetry run inv password-reset +poetry run inv reset-password # edit data/profile.toml # restart supervisord ``` @@ -348,7 +348,7 @@ poetry run inv password-reset ```bash docker compose stop -make password-reset +make reset-password # edit data/profile.toml docker compose up -d ```