Browse code

don't install root filters when Q_USE_ROOTWRAP is false

Change-Id: I2f6edfcfb3789310fbeea8a509e0d9a13428becc
Closes-bug: #1495822

gong yong sheng authored on 2015/09/15 16:00:29
Showing 1 changed files
... ...
@@ -1165,6 +1165,9 @@ function _neutron_service_plugin_class_add {
1165 1165
 
1166 1166
 # _neutron_deploy_rootwrap_filters() - deploy rootwrap filters to $Q_CONF_ROOTWRAP_D (owned by root).
1167 1167
 function _neutron_deploy_rootwrap_filters {
1168
+    if [[ "$Q_USE_ROOTWRAP" == "False" ]]; then
1169
+        return
1170
+    fi
1168 1171
     local srcdir=$1
1169 1172
     sudo install -d -o root -m 755 $Q_CONF_ROOTWRAP_D
1170 1173
     sudo install -o root -m 644 $srcdir/etc/neutron/rootwrap.d/* $Q_CONF_ROOTWRAP_D/