Commit 47dc37dd authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕

Replace python with bash.

parent 310fb731
Pipeline #2636 failed with stage
in 47 seconds
......@@ -140,7 +140,6 @@ generate-service () {
}
source sources/data.sh
source ./.secret.sh
rm -rf services/
mkdir -p services
......@@ -169,7 +168,7 @@ else
mkdir -p dashboard/dashboard-auth
cp sources/dashboard-auth/*.yaml dashboard/dashboard-auth/
COOKIE_SECRET=$(python -c 'import os,base64; print base64.b64encode(os.urandom(16))')
COOKIE_SECRET=$(dd if=/dev/urandom bs=16 count=1 2>/dev/null | base64)
sed -i -e "s#__OAUTH2_PROXY_COOKIE_SECRET__#$COOKIE_SECRET#g" dashboard/dashboard-auth/oauth2-proxy.yaml
sed -i -e "s#__OAUTH2_PROXY_CLIENT_SECRET__#$OAUTH2_PROXY_CLIENT_SECRET#g" dashboard/dashboard-auth/oauth2-proxy.yaml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment