3e89f987c0
TrivialFix Change-Id: I817aa52caf56b7d54b266e553db6db1ceb38b773 Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
13 lines
284 B
Bash
13 lines
284 B
Bash
#!/bin/bash
|
|
|
|
FERNET_SYNC=/usr/bin/fernet-node-sync.sh
|
|
FERNET_TOKEN_DIR="/etc/keystone/fernet-keys"
|
|
|
|
if [[ -f "${FERNET_SYNC}" ]]; then
|
|
${FERNET_SYNC}
|
|
fi
|
|
|
|
if [[ $(stat -c %U:%G ${FERNET_TOKEN_DIR}) != "keystone:keystone" ]]; then
|
|
chown keystone:keystone ${FERNET_TOKEN_DIR}
|
|
fi
|