Move the detection of minifirewall config
This commit is contained in:
parent
e5594f3f1b
commit
8963a85269
|
@ -146,15 +146,15 @@ is_debianversion(){
|
|||
[ $(lsb_release -c -s) = $1 ] && return 0
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------
|
||||
#Vérifie si c'est une debian et fait les tests appropriés.
|
||||
#-----------------------------------------------------------
|
||||
|
||||
is_debianversion squeeze && MINIFW_FILE=/etc/firewall.rc
|
||||
is_debianversion wheezy && MINIFW_FILE=/etc/firewall.rc
|
||||
is_debianversion jessie && MINIFW_FILE=/etc/default/minifirewall
|
||||
is_debianversion stretch && MINIFW_FILE=/etc/default/minifirewall
|
||||
|
||||
#-----------------------------------------------------------
|
||||
#Vérifie si c'est une debian et fait les tests appropriés.
|
||||
#-----------------------------------------------------------
|
||||
|
||||
if [ -e /etc/debian_version ]; then
|
||||
|
||||
if [ "$IS_DPKGWARNING" = 1 ]; then
|
||||
|
|
Loading…
Reference in a new issue