Fix the permission issue in devstack plugin

Change-Id: I004866b662d2c32729c80938e0317760c25904a3
This commit is contained in:
Lingxian Kong 2018-05-12 17:14:36 +12:00
parent e22faa69fd
commit 8757a10999
1 changed files with 3 additions and 1 deletions

View File

@ -55,12 +55,14 @@ function mkdir_chown_stack {
if [[ ! -d "$1" ]]; then
sudo mkdir -p "$1"
fi
sudo chown $STACK_USER:$STACK_USER "$1"
sudo chown -R $STACK_USER:$STACK_USER "$1"
}
function configure_k8s_certificates {
pushd $QINLING_DIR
mkdir_chown_stack "$QINLING_CONF_DIR"/pki
mkdir_chown_stack "$QINLING_CONF_DIR"/pki/kubernetes
curl -L https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 -o /tmp/cfssl