mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[DEV] Notify that macOS currently isn't supported for dev workflow (#1140)
This commit is contained in:
parent
8216eacfc4
commit
28f1a77f54
15
bootstrap.sh
15
bootstrap.sh
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ $(uname) == "Darwin" ]]; then
|
||||||
|
echo "Authelia's development workflow currently isn't supported on macOS"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
export PATH=$PATH:./cmd/authelia-scripts/:./.buildkite/steps/:$GOPATH/bin:./web/node_modules/.bin:/tmp
|
export PATH=$PATH:./cmd/authelia-scripts/:./.buildkite/steps/:$GOPATH/bin:./web/node_modules/.bin:/tmp
|
||||||
|
|
||||||
if [[ -z "$OLD_PS1" ]]; then
|
if [[ -z "$OLD_PS1" ]]; then
|
||||||
|
@ -10,9 +15,6 @@ fi
|
||||||
if [[ $(id -u) = 0 ]]; then
|
if [[ $(id -u) = 0 ]]; then
|
||||||
echo "Cannot run as root, defaulting to UID 1000"
|
echo "Cannot run as root, defaulting to UID 1000"
|
||||||
export USER_ID=1000
|
export USER_ID=1000
|
||||||
elif [[ $(uname) == "Darwin" ]]; then
|
|
||||||
echo "Normalise for OSX, defaulting to UID 1000"
|
|
||||||
export USER_ID=1000
|
|
||||||
else
|
else
|
||||||
export USER_ID=$(id -u)
|
export USER_ID=$(id -u)
|
||||||
fi
|
fi
|
||||||
|
@ -20,16 +22,11 @@ fi
|
||||||
if [[ $(id -g) = 0 ]]; then
|
if [[ $(id -g) = 0 ]]; then
|
||||||
echo "Cannot run as root, defaulting to GID 1000"
|
echo "Cannot run as root, defaulting to GID 1000"
|
||||||
export GROUP_ID=1000
|
export GROUP_ID=1000
|
||||||
elif [[ $(uname) == "Darwin" ]]; then
|
|
||||||
echo "Normalise for OSX, defaulting to GID 1000"
|
|
||||||
export GROUP_ID=1000
|
|
||||||
else
|
else
|
||||||
export GROUP_ID=$(id -g)
|
export GROUP_ID=$(id -g)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$CI" == "true" ]]; then
|
if [[ "$CI" != "true" ]]; then
|
||||||
true
|
|
||||||
else
|
|
||||||
export CI=false
|
export CI=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user