Project

General

Profile

Tâche #10825

Distribution EOLE - Scénario #10823: Prendre en compte le fait que le chemin de la commande ipset a changé

Corriger le chemin de la commande ipset dans eole-common

Added by Joël Cuissinat about 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/06/2015
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:
Remaining (hours):
0.0

Description

jojo-zotac:~/git/eole-common(2.5/master)$ rgrep "/sbin/ipset" * 
bastion/firewall.start:    [ -x /usr/sbin/ipset ] && /usr/sbin/ipset save > /etc/eole/ipset
bastion/firewall.start:        CreoleRun "[ -x /usr/sbin/ipset ] && /usr/sbin/ipset save > /etc/eole/ipset" all no yes
bastion/bastion:    [ -f $CACHESET ] && /usr/sbin/ipset restore -exist < $CACHESET
bastion/firewall.stop.container:if [ -x /usr/sbin/ipset ]; then
bastion/firewall.stop.container:    /usr/sbin/ipset -n list | while read setname; do
bastion/firewall.stop.container:        /usr/sbin/ipset flush "$setname";
bastion/firewall.stop.container:        /usr/sbin/ipset destroy "$setname";
bastion/bastion.container:    [ -f $CACHESET ] && /usr/sbin/ipset restore -exist < $CACHESET
tmpl/forteresse.sh:        if [ -x /usr/sbin/ipset ]
tmpl/forteresse.sh:            /usr/sbin/ipset -n list | while read setname; do
tmpl/forteresse.sh:                /usr/sbin/ipset flush "$setname";
tmpl/forteresse.sh:                /usr/sbin/ipset destroy "$setname";

Associated revisions

Revision 0393f277 (diff)
Added by Joël Cuissinat about 6 years ago

Correction du chemin vers « ipset »

  • tmpl/forteresse.sh : Modification du code testant la présence du script et ses appels
  • bastion/* : idem

Fixes: #10825 @1.5h

History

#1 Updated by Joël Cuissinat about 6 years ago

Le chemin peut être obtenu à l'aide de la commande :

command -v ipset

#2 Updated by Joël Cuissinat about 6 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Joël Cuissinat about 6 years ago

  • Assigned To set to Joël Cuissinat

#4 Updated by Joël Cuissinat about 6 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#5 Updated by Joël Cuissinat about 6 years ago

  • Remaining (hours) changed from 3.0 to 0.25

#6 Updated by Joël Cuissinat about 6 years ago

Vu

#7 Updated by Joël Cuissinat about 6 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Also available in: Atom PDF