Skip to content

Commit 657d201

Browse files
committed
Still working on the key
1 parent 2d2ebe7 commit 657d201

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/copy_certs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ elif [ "$NODE_ENV" = "staging" ]; then
88
cp /opt/api/certs/staging/* /opt/api/server/certs/
99
else
1010
if [[ -v LOGIN_PRIVATE_KEY ]]; then
11-
echo $LOGIN_PRIVATE_KEY > /opt/api/server/certs/private.pem
11+
echo "$LOGIN_PRIVATE_KEY" > /opt/api/server/certs/private.pem
12+
chmod 600 /opt/api/server/certs/private.pem
1213
fi
1314
cp /opt/api/certs/dev/* /opt/api/server/certs/
1415
fi

0 commit comments

Comments
 (0)