Ask for SWIFT_HASH.

main
Chmouel Boudjnah 13 years ago
parent 5c50f0dcde
commit ab75f4becf

@ -284,6 +284,9 @@ SWIFT_LOOPBACK_DISK_SIZE=${SWIFT_LOOPBACK_DISK_SIZE:-1000000}
# Default partition power size (bigger is slower)
SWIFT_PARTITION_POWER_SIZE=${SWIFT_PARTITION_POWER_SIZE:-9}
# Swift hash, this must be unique
read_password SWIFT_HASH "ENTER A RANDOM HASH SHARED BETWEEN ALL PROCESSES."
# Keystone
# --------
@ -667,7 +670,6 @@ EOF
# Generate swift.conf, we need to have the swift-hash being random
# and unique.
swift_hash=$(od -t x8 -N 8 -A n </dev/random)
sed -e "s/%SWIFT_HASH%/$swift_hash/" $FILES/swift.conf > /etc/swift/swift.conf
# We need to generate a object/account/proxy configuration

Loading…
Cancel
Save