authelia/bootstrap.sh
2019-12-05 11:05:24 +01:00

22 lines
393 B
Bash

#!/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
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
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