Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit 7ff59ea

Browse files
committed
Cleanup
1 parent 1e78c1e commit 7ff59ea

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

gateway/0.1.4/Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,13 @@ RUN ( \
7575
chmod +x /app/sync_hub.sh
7676

7777

78-
# Script for File Copying
78+
# Script for SSH key setup
7979
#
8080
VOLUME /app/sync/
8181
RUN ( \
8282
echo "#!/bin/bash"; \
8383
echo "#"; \
8484
echo "# Exit on errors or unset variables"; \
85-
echo "set -e -o nounset"; \
8685
echo ""; \
8786
echo ""; \
8887
echo "# Create, cat and test SSH keys, if necessary"; \
@@ -99,11 +98,6 @@ RUN ( \
9998
echo " read ENTER_TO_CONTINUE"; \
10099
echo " /sbin/setuser autossh ssh -p \${PORT_AUTOSSH} autossh@\${IP_HUB} -o StrictHostKeyChecking=no 'hostname; exit'"; \
101100
echo "}"; \
102-
echo ""; \
103-
echo ""; \
104-
echo "cd /app/sync/"; \
105-
echo "find . -execdir rename -f \"s/-GATEWAY_ID_/-\${GATEWAY_ID}_/\" {} \;"; \
106-
echo "/sbin/setuser autossh rsync -have \"ssh -p 2774\" -r . autossh@\${IP_HUB}:/home/autossh/sync/"; \
107101
) \
108102
>> /app/ssh_config.sh; \
109103
chmod +x /app/ssh_config.sh

0 commit comments

Comments
 (0)