Changeset 21


Ignore:
Timestamp:
09/21/07 18:05:03 (4 years ago)
Author:
bruno
Message:

Fix a bug in SSHGWUser.pm where the wrong iptabels script was called
Add testsshuserage to delete expired accounts
Add some missing scripts from the set

Location:
devel/sshgw
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • devel/sshgw/lib/SSHGWUser.pm

    r11 r21  
    458458 
    459459    chmod(0755, "/etc/sysconfig/iptables.users/$self->{USERNAME}") || $self->_cleanup("cannot change mod of iptables file") && return 0 ; 
    460     ( system { "/etc/init.d/iptables" } ( "/etc/init.d/iptables", "restart" ) ) && $self->_cleanup("cannot renew iptables") && return 0 ; 
     460    ( system { "/etc/sysconfig/iptables" } ( "/etc/sysconfig/iptables", "" ) ) && $self->_cleanup("cannot renew iptables") && return 0 ; 
    461461 
    462462    return 1 ; 
     
    502502    return 0 if -f "/etc/sysconfig/iptables.users/$self->{USERNAME}" ; 
    503503 
    504     return 0 if system "/etc/init.d/iptables restart" ; 
     504    return 0 if system "/etc/sysconfig/iptables" ; 
    505505 
    506506    return 1 ; 
Note: See TracChangeset for help on using the changeset viewer.