Skip to content
Snippets Groups Projects
Commit ede12592 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Adds support for .env file

parent 6447f158
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,10 @@ ExecStartPre=/bin/bash -euxc ' \ ...@@ -25,7 +25,10 @@ ExecStartPre=/bin/bash -euxc ' \
ExecStart=/bin/bash -euxc ' \ ExecStart=/bin/bash -euxc ' \
if [ -d /data/import/%i ]; then \ if [ -d /data/import/%i ]; then \
cp -r /data/import/%i/* /data/domains/%i; \ cp -av /data/import/%i/* /data/domains/%i; \
cp /data/import/%i/.env /data/domains/%i/; \
cd /data/domains/%i/; \
git add .env; \
rm -rf /data/import/%i; \ rm -rf /data/import/%i; \
fi; \ fi; \
cp /data/domains/%i/TLS/%i.pem /data/runtime/haproxy/approved-certs/%i.pem;' cp /data/domains/%i/TLS/%i.pem /data/runtime/haproxy/approved-certs/%i.pem;'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment