website/scripts/docsmg: Add install script and readme draft (#10659)
* add docsmg tool * moved to the correct scripts directory * removed test files * added install script and readme draft to docsmg
This commit is contained in:
7
website/scripts/docsmg/README.md
Normal file
7
website/scripts/docsmg/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Docsmg
|
||||||
|
|
||||||
|
## 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`
|
||||||
4
website/scripts/docsmg/install.sh
Executable file
4
website/scripts/docsmg/install.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
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 chmod 755 /bin/map
|
||||||
|
curl https://raw.githubusercontent.com/goauthentik/authentik/main/website/scripts/docsmg/mcomplete.bash >> ~/.zshrc
|
||||||
@ -1,5 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
_completions () {
|
_completions () {
|
||||||
if [[ -z "${MIGRATE_PATH}" ]];
|
if [[ -z "${MIGRATE_PATH}" ]];
|
||||||
then MIGRATE_PATH="./";
|
then MIGRATE_PATH="./";
|
||||||
@ -20,4 +18,4 @@ _completions () {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -o nospace -o filenames -F _completions m.bash
|
complete -o nospace -o filenames -F _completions map
|
||||||
|
|||||||
Reference in New Issue
Block a user