Spaces:
Sleeping
Sleeping
Create docker-entrypoint.sh
Browse files- docker-entrypoint.sh +15 -0
docker-entrypoint.sh
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
if [ -d /opt/custom-certificates ]; then
|
3 |
+
echo "Trusting custom certificates from /opt/custom-certificates."
|
4 |
+
export NODE_OPTIONS=--use-openssl-ca $NODE_OPTIONS
|
5 |
+
export SSL_CERT_DIR=/opt/custom-certificates
|
6 |
+
c_rehash /opt/custom-certificates
|
7 |
+
fi
|
8 |
+
|
9 |
+
if [ "$#" -gt 0 ]; then
|
10 |
+
# Got started with arguments
|
11 |
+
exec n8n "$@"
|
12 |
+
else
|
13 |
+
# Got started without arguments
|
14 |
+
exec n8n
|
15 |
+
fi
|