__acl: check if getfacl is available

remotes/katolaz/master
Ander Punnar 6 years ago
parent e997e98a73
commit 2cde09648c
  1. 6
      cdist/conf/type/__acl/explorer/acl_is

@ -18,6 +18,12 @@
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
if ! command -v getfacl 2>/dev/null
then
echo 'getfacl not available' >&2
exit 1
fi
if [ -e "/$__object_id" ]
then
getfacl "/$__object_id" 2>/dev/null \

Loading…
Cancel
Save