summaryrefslogtreecommitdiffstats
path: root/anslib/patches/archive/gluster_paths.sh
blob: 4c3ca0b6591b0f47f1cd0a673b2e849460dcf8d5 (plain)
1
2
3
4
5
6
7
8
9
#! /bin/bash

# This is not enough. We also need to separate /dev otherwise port clashes (may be cgroups). Not sure about the side effects.
function fixpath_func {
    sed -i.orig -e "/ path: \"\/\(var\|etc\|run\)/ s/\//_/g ; s/\"_/\"\/var\/lib\/heketi\//" $1
}

export -f fixpath_func
find openshift-ansible/roles/openshift_storage_glusterfs/files/v3.7 -name glusterfs-template.yml -print0 | xargs -0 -L 1 -I {} bash -c 'fixpath_func "$@"' _ {}