Fix the permission issue in devstack plugin
Change-Id: I004866b662d2c32729c80938e0317760c25904a3
This commit is contained in:
parent
e22faa69fd
commit
8757a10999
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user