2019-11-01 22:08:22 +07:00
|
|
|
#!/bin/bash
|
2019-03-04 05:51:52 +07:00
|
|
|
|
2019-11-02 21:32:58 +07:00
|
|
|
export PATH=./cmd/authelia-scripts/:/tmp:$PATH:./node_modules/.bin
|
2019-03-04 05:51:52 +07:00
|
|
|
|
2019-10-30 03:54:47 +07:00
|
|
|
if [ -z "$OLD_PS1" ]; then
|
|
|
|
OLD_PS1="$PS1"
|
|
|
|
export PS1="(authelia) $PS1"
|
|
|
|
fi
|
2019-03-04 05:51:52 +07:00
|
|
|
|
|
|
|
|
2019-10-30 03:54:47 +07:00
|
|
|
echo "[BOOTSTRAP] Checking if Go is installed..."
|
|
|
|
if [ ! -x "$(command -v go)" ];
|
2019-03-04 05:51:52 +07:00
|
|
|
then
|
2019-10-30 03:54:47 +07:00
|
|
|
echo "[ERROR] You must install Go on your machine.";
|
2019-03-04 05:51:52 +07:00
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
|
|
|
authelia-scripts bootstrap
|