Browse code

Change mode of DATA_DIR to 0755 as well

It looks libvirt/qemu requires mode 0755 to functioning properly,
but DATA_DIR won't be set to 0755 if it is different from default.

Change-Id: I37ca0b02b6a75b3756860b547e84c37ccfc99d13
Closes-Bug: #1677421

Hongbin Lu authored on 2017/03/30 11:06:54
Showing 1 changed files
... ...
@@ -328,6 +328,7 @@ fi
328 328
 DATA_DIR=${DATA_DIR:-${DEST}/data}
329 329
 sudo mkdir -p $DATA_DIR
330 330
 safe_chown -R $STACK_USER $DATA_DIR
331
+safe_chmod 0755 $DATA_DIR
331 332
 
332 333
 # Configure proper hostname
333 334
 # Certain services such as rabbitmq require that the local hostname resolves