diff --git a/etc/cgroup.release_common.example b/etc/cgroup.release_common.example index f431d26855b51c00accca33218f9656829af02df..94acd9f8d210c8fe787f320e23218a95eb505048 100644 --- a/etc/cgroup.release_common.example +++ b/etc/cgroup.release_common.example @@ -19,10 +19,10 @@ subsystem=${progname##*_} get_mount_dir() { local lssubsys=$(type -p lssubsys) - if [ -x $lssubsys ]; then + if [[ $lssubsys ]]; then $lssubsys -m $subsystem | awk '{print $2}' else - awk "/release_agent=$0/ { print \$2 }" + echo "/cgroup/$subsystem" fi }