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