Fix a bug for 8.3.1

This commit is contained in:
Samson-W 2019-05-21 15:54:00 +08:00
parent 70b95bd177
commit 3717ab1550
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,10 @@ audit () {
# This function will be called if the script status is on enabled mode
apply () {
is_pkg_installed $PACKAGE_R
if [ $FNRET = 0 ]; then
ok "$PACKAGE_R has installed, so pass."
else
is_pkg_installed $PACKAGE
if [ $FNRET = 0 ]; then
ok "$PACKAGE or $PACKAGE_R is installed"
@ -45,6 +49,7 @@ apply () {
crit "$PACKAGE is absent, installing it"
apt_install $PACKAGE
fi
fi
}
# This function will check config parameters required