diff options
author | Joseph Henry <josephjah@gmail.com> | 2015-12-04 12:39:54 -0800 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2015-12-04 12:39:54 -0800 |
commit | d9b12be697ed97e5a66c3912acc9a88d97f9ab8d (patch) | |
tree | b2c4adbb8771c3dfb0516e0ba065272d3cfada97 /netcon/docker-test/nginx/nginx-1.8.0-13.fc23.x86_64/netcon_entrypoint.sh | |
parent | 2196d982c374231e09f41d23cc32932391036ee8 (diff) | |
download | infinitytier-d9b12be697ed97e5a66c3912acc9a88d97f9ab8d.tar.gz infinitytier-d9b12be697ed97e5a66c3912acc9a88d97f9ab8d.zip |
ZT_NC_NWID patch + (WIP) test script modifications
Diffstat (limited to 'netcon/docker-test/nginx/nginx-1.8.0-13.fc23.x86_64/netcon_entrypoint.sh')
-rw-r--r-- | netcon/docker-test/nginx/nginx-1.8.0-13.fc23.x86_64/netcon_entrypoint.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/netcon/docker-test/nginx/nginx-1.8.0-13.fc23.x86_64/netcon_entrypoint.sh b/netcon/docker-test/nginx/nginx-1.8.0-13.fc23.x86_64/netcon_entrypoint.sh index bf249222..12d0d998 100644 --- a/netcon/docker-test/nginx/nginx-1.8.0-13.fc23.x86_64/netcon_entrypoint.sh +++ b/netcon/docker-test/nginx/nginx-1.8.0-13.fc23.x86_64/netcon_entrypoint.sh @@ -35,13 +35,14 @@ echo $virtip4 > "$address_file" export ZT_NC_NWID=$dev # --- Test section --- +nginx_html_path=/usr/share/nginx/html/ # Generate large random file for transfer test, share md5sum for monitor container to check echo '*** Generating ' "$bigfile_size" ' file' -dd if=/dev/urandom of=/var/www/html/"$bigfile_name" bs="$bigfile_size" count=1 +dd if=/dev/urandom of="$nginx_html_path$bigfile_name" bs="$bigfile_size" count=1 #md5sum /var/www/html/"$bigfile_name" >> "$tx_md5sumfile" -md5sum < /var/www/html/"$bigfile_name" >> "$tx_md5sumfile" +md5sum < "$nginx_html_path$bigfile_name" >> "$tx_md5sumfile" echo '*** Wrote MD5 sum to ' "$tx_md5sumfile" echo '*** Starting application...' sleep 0.5 -zerotier-intercept nginx -p /var/www/html +zerotier-intercept nginx |