kolla/docker/keystone/keystone-fernet/extend_start.sh
Jeffrey Zhang 3e89f987c0 Add validate no new line at end of file
TrivialFix

Change-Id: I817aa52caf56b7d54b266e553db6db1ceb38b773
Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-10-19 17:17:06 +00:00

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