Skip to content

Commit 0d24c29

Browse files
Merge pull request #1 from punktDe/elastic-sync-in-docker
TASK: Improve Docker compatibility
2 parents c978ffb + 1ba8e94 commit 0d24c29

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Resources/Private/Template/CopyElastic.sh.template

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env bash
22
export NODE_TLS_REJECT_UNAUTHORIZED=0
33

4-
ssh {remoteInstance.sshOptions->f:format.raw()} -C -f -N -L 9210:{remoteConfiguration.elasticsearchHost}:{remoteConfiguration.elasticsearchPort} {remoteInstance.user}@{remoteInstance.host}
4+
ssh {remoteInstance.sshOptions->f:format.raw()} -C -f -N -L 127.0.0.1:9210:{remoteConfiguration.elasticsearchHost}:{remoteConfiguration.elasticsearchPort} {remoteInstance.user}@{remoteInstance.host}
55
sshpid=$?
6-
trap "kill $sshpid" SIGTERM SIGINT
6+
trap "kill $sshpid" EXIT
77

88
<f:for each="{indices}" as="index">
99
{elasticDumpPath} \
@@ -17,5 +17,3 @@ trap "kill $sshpid" SIGTERM SIGINT
1717
--output={localConfiguration.elasticsearchScheme}://{localConfiguration.elasticsearchHost}:{localConfiguration.elasticsearchPort}/{index.local.indexName} \
1818
--type=data
1919
</f:for>
20-
21-
kill $sshpid

0 commit comments

Comments
 (0)