Skip to content

Commit e2f4ec6

Browse files
Minor fix to userdata.sh. Added -e to set options.
1 parent c11931e commit e2f4ec6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Terraform/userdata.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -uox pipefail
2+
set -ueo pipefail
33
export DEBIAN_FRONTEND=noninteractive
44

55
# Log everything (even early failures)
@@ -119,6 +119,6 @@ cd build/Cpp
119119
# The simulator makes entries that are between 200 and 4000 bytes (approximately). If we want about 1,000 objects,
120120
# set max bytes to about 2MB.
121121
OPTIONS="--duration 300 --monitor-ms 10000 --blocking --read-sleep 20 --write-sleep 1000 --max-bytes 1000000"
122-
./RedisFileCacheLRU_Simulator $OPTIONS --redis-host "$REDIS_ENDPOINT" --redis-port 6379 --cache-dir "$MOUNT_POINT/poc-cache" > /opt/simulator.log 2>&1 &
122+
./RedisFileCacheLRU_Simulator "$OPTIONS" --redis-host "$REDIS_ENDPOINT" --redis-port 6379 --cache-dir "$MOUNT_POINT/poc-cache" > /opt/simulator.log 2>&1 &
123123

124124
echo "=== userdata end $(date -Is) ==="

0 commit comments

Comments
 (0)