We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21aedf1 commit c7653d7Copy full SHA for c7653d7
run-ndla-frontend.sh
@@ -2,11 +2,8 @@
2
3
APPLICATION_NAME="ndla-frontend"
4
5
-function is_kubernetes {
6
- return [ -e "/var/run/secrets/kubernetes.io" ]
7
-}
8
-
9
function setup_environment {
+ echo "Setting up environment..."
10
secretsfile="/tmp/secrets"
11
aws s3 --region eu-central-1 cp s3://$NDLA_ENVIRONMENT.secrets.ndla/$APPLICATION_NAME.secrets $secretsfile
12
@@ -22,7 +19,7 @@ function setup_environment {
22
19
fi
23
20
}
24
21
25
-if [ "$NDLA_ENVIRONMENT" != "local" ] && [ ! is_kubernetes ]; then
+if [ "$NDLA_ENVIRONMENT" != "local" ] && [ -z "$NDLA_IS_KUBERNETES" ]; then
26
setup_environment
27
28
0 commit comments