__acl: check if getfacl is available
This commit is contained in:
parent
e997e98a73
commit
2cde09648c
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,12 @@
|
||||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
|
# 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" ]
|
if [ -e "/$__object_id" ]
|
||||||
then
|
then
|
||||||
getfacl "/$__object_id" 2>/dev/null \
|
getfacl "/$__object_id" 2>/dev/null \
|
||||||
|
|
Loading…
Reference in a new issue