def _ensure_db_access(self):
     # Need db access:
     # openstack-dashboard/local needs to be writeable by the runtime user
     # since currently its storing the sql-lite databases there (TODO fix that)
     path = sh.joinpths(self.dash_dir, 'local')
     if sh.isdir(path):
         (user, group) = self._get_apache_user_group()
         LOG.debug("Changing ownership (recursively) of %r so that it can be used by %r/%r",
                         path, group, user)
         sh.chown_r(path, sh.getuid(user), sh.getgid(group))
 def _ensure_db_access(self):
     # ../openstack-dashboard/local needs to be writeable by the runtime user
     # since currently its storing the sql-lite databases there (TODO fix that)
     path = sh.joinpths(self.dash_dir, "local")
     if sh.isdir(path):
         (user, group) = self._get_apache_user_group()
         LOG.info("Changing ownership (recursively) of %s so that it can be used by %s - %s", path, user, group)
         uid = sh.getuid(user)
         gid = sh.getgid(group)
         sh.chown_r(path, uid, gid)
 def _ensure_db_access(self):
     # Need db access:
     # openstack-dashboard/local needs to be writeable by the runtime user
     # since currently its storing the sql-lite databases there (TODO fix that)
     path = sh.joinpths(self.dash_dir, 'local')
     if sh.isdir(path):
         (user, group) = self._get_apache_user_group()
         LOG.debug(
             "Changing ownership (recursively) of %r so that it can be used by %r/%r",
             path, group, user)
         sh.chown_r(path, sh.getuid(user), sh.getgid(group))