mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-31 01:24:58 +02:00
Fix a bug for 8.3.1
This commit is contained in:
parent
70b95bd177
commit
3717ab1550
@ -38,6 +38,10 @@ audit () {
|
|||||||
|
|
||||||
# This function will be called if the script status is on enabled mode
|
# This function will be called if the script status is on enabled mode
|
||||||
apply () {
|
apply () {
|
||||||
|
is_pkg_installed $PACKAGE_R
|
||||||
|
if [ $FNRET = 0 ]; then
|
||||||
|
ok "$PACKAGE_R has installed, so pass."
|
||||||
|
else
|
||||||
is_pkg_installed $PACKAGE
|
is_pkg_installed $PACKAGE
|
||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
ok "$PACKAGE or $PACKAGE_R is installed"
|
ok "$PACKAGE or $PACKAGE_R is installed"
|
||||||
@ -45,6 +49,7 @@ apply () {
|
|||||||
crit "$PACKAGE is absent, installing it"
|
crit "$PACKAGE is absent, installing it"
|
||||||
apt_install $PACKAGE
|
apt_install $PACKAGE
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function will check config parameters required
|
# This function will check config parameters required
|
||||||
|
Loading…
x
Reference in New Issue
Block a user