integrity/ima-policy-load.sh: s/echo -n/printf
parent
b08ad7f7d8
commit
fc44fdb5ac
|
|
@ -30,7 +30,7 @@ load_ima_policy()
|
|||
# check the existence of the IMA policy file
|
||||
[ -f "${IMAPOLICYPATH}" ] && {
|
||||
info "Loading the provided IMA custom policy";
|
||||
echo -n "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
|
||||
printf '%s' "${IMAPOLICYPATH}" > ${IMASECDIR}/policy || \
|
||||
cat "${IMAPOLICYPATH}" > ${IMASECDIR}/policy
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue