authelia/bootstrap.sh

23 lines
409 B
Bash
Raw Normal View History

2019-11-01 15:08:22 +00:00
#!/bin/bash
export PATH=./cmd/authelia-scripts/:/tmp:$PATH:./node_modules/.bin
if [ -z "$OLD_PS1" ]; then
OLD_PS1="$PS1"
export PS1="(authelia) $PS1"
fi
2019-11-30 16:49:52 +00:00
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
export CI=false
2019-11-30 16:49:52 +00:00
echo "[BOOTSTRAP] Checking if Go is installed..."
if [ ! -x "$(command -v go)" ];
then
echo "[ERROR] You must install Go on your machine.";
return
fi
authelia-scripts bootstrap