mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-04 14:21:15 +02:00
add "apt_remove" in lib/utils.sh
in order to manage DEBIAN_FRONTEND
This commit is contained in:
@@ -575,6 +575,12 @@ apt_install() {
|
|||||||
FNRET=0
|
FNRET=0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apt_remove() {
|
||||||
|
local PACKAGE=$1
|
||||||
|
DEBIAN_FRONTEND='noninteractive' apt remove -y "$PACKAGE"
|
||||||
|
FNRET=0
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Returns if a package is installed
|
# Returns if a package is installed
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user