diff --git a/website/scripts/docsmg/README.md b/website/scripts/docsmg/README.md index 913d990b2d..31a54267a6 100644 --- a/website/scripts/docsmg/README.md +++ b/website/scripts/docsmg/README.md @@ -2,6 +2,12 @@ ## Steps to install -1. Install [rustup](https://rustup.rs/) if its not already installed -2. Update to the latest version of rust if you dont already have it with `rustup update` -3. Install the cli tool with `curl https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/install.sh | sh` +1. Verify that you have the latest version of rust installed + - Install [rust](rustup.rs) or update rust to the latest version with `rustup update` +2. Install the cli tool with `curl https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/install.sh | sh` + +## Steps to use + +### Adding entries + +Add entries to be moved with `map ` diff --git a/website/scripts/docsmg/install.sh b/website/scripts/docsmg/install.sh index 74762fd6ca..190af52d2a 100755 --- a/website/scripts/docsmg/install.sh +++ b/website/scripts/docsmg/install.sh @@ -1,4 +1,5 @@ cargo install --git https://github.com/goauthentik/authentik sudo wget https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/m.bash -O /bin/map +sudo wget https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/mcomplete.bash -O /bin/mapcomplete sudo chmod 755 /bin/map -curl https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/mcomplete.bash >> ~/.zshrc +echo "source mapcomplete" >> ~./zshrc diff --git a/website/scripts/docsmg/mcomplete.bash b/website/scripts/docsmg/mcomplete.bash index 72505336c3..d57f439316 100755 --- a/website/scripts/docsmg/mcomplete.bash +++ b/website/scripts/docsmg/mcomplete.bash @@ -1,3 +1,5 @@ +#!/bin/bash + _completions () { if [[ -z "${MIGRATE_PATH}" ]]; then MIGRATE_PATH="./";