Skip to content

Commit

Permalink
Remove snort service in postinst
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed May 13, 2013
1 parent 9091259 commit 0816032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debian/packetfence.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ case "$1" in
# managing services
# Ubuntu
if [ -e /etc/lsb-release ]; then
for service in snort apache2 snmptrapfmt bind9 freeradius apparmor; do
for service in apache2 snmptrapfmt bind9 freeradius apparmor; do
if /sbin/initctl list | grep $service > /dev/null 2>&1; then
service $service stop > /dev/null 2>&1
update-rc.d -f $service remove > /dev/null 2>&1
Expand All @@ -67,7 +67,7 @@ case "$1" in

#Debian
else
for service in snort apache2 snmptrapfmt bind9 freeradius isc-dhcp-server; do
for service in apache2 snmptrapfmt bind9 freeradius isc-dhcp-server; do
if /usr/sbin/service --status-all | grep $service > /dev/null 2>&1; then
service $service stop > /dev/null 2>&1
update-rc.d $service remove > /dev/null 2>&1
Expand Down

0 comments on commit 0816032

Please sign in to comment.