mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-31 01:24:58 +02:00
Fix bug for 5.9
This commit is contained in:
parent
286434cff2
commit
45a1d8ab0b
@ -32,7 +32,7 @@ apply () {
|
|||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
ok "$TARGETNAME is disabled."
|
ok "$TARGETNAME is disabled."
|
||||||
else
|
else
|
||||||
TARGETS=$(find /lib/systemd/ /etc/systemd/ -name ctrl-alt-del.target -exec ls -l {} \;| grep -v "/dev/null" | awk '{print $NF}')
|
TARGETS=$(find /lib/systemd/ /etc/systemd/ -name ctrl-alt-del.target -exec ls {} \;| grep -v "/dev/null" | awk '{print $NF}')
|
||||||
for TARGET in $TARGETS
|
for TARGET in $TARGETS
|
||||||
do
|
do
|
||||||
warn "Disable $TARGET"
|
warn "Disable $TARGET"
|
||||||
|
@ -150,7 +150,6 @@ add_line_file_after_pattern() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
replace_in_file() {
|
replace_in_file() {
|
||||||
set -x
|
|
||||||
local FILE=$1
|
local FILE=$1
|
||||||
local SOURCE=$2
|
local SOURCE=$2
|
||||||
local DESTINATION=$3
|
local DESTINATION=$3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user