Commit 9763f632 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

Suppress dd noise

parent 8eadd11f
......@@ -7,11 +7,11 @@ export NODE_ENV=production
# Creating a secret for web sessions
if [ ! -f /app/data/session.secret ]; then
echo "==> Generating session secret"
dd if=/dev/urandom bs=256 count=1 | base64 > /app/data/session.secret
dd if=/dev/urandom bs=256 count=1 2>/dev/null | base64 > /app/data/session.secret
fi
# Generate random management token for admin api
dd if=/dev/urandom bs=256 count=1 | base64 > /run/admin-token
dd if=/dev/urandom bs=256 count=1 2>/dev/null | base64 > /run/admin-token
# The first time this is run, initialize OpenVPN keys
if [ ! -d /app/data/keys ]; then
......
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