mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
c3569d9bd0
This is to avoid the multiple reloads due to the frontend modules being installed at the startup of the suite and randomly preventing Authelia from starting.
23 lines
409 B
Bash
23 lines
409 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)
|
|
export CI=false
|
|
|
|
|
|
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
|