diff options
author | Christian Breunig <christian@breunig.cc> | 2023-06-08 21:11:11 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-06-08 21:11:31 +0200 |
commit | 3b340d769e3c2e37f7a32d2611d88e7e6394a201 (patch) | |
tree | b555f4aac33f8a34a1fb85b1b01b8729cdf3c0ec | |
parent | 7c698f29d774971e0cb2d9471a343d459956d876 (diff) | |
download | vyatta-cfg-3b340d769e3c2e37f7a32d2611d88e7e6394a201.tar.gz vyatta-cfg-3b340d769e3c2e37f7a32d2611d88e7e6394a201.zip |
startup: T5145: clean out VyOS login limit definition
Always clean our mess before re-adding it. This is required in /etc when
a user does a change but does not save the config - all his changes
should be reverted on reboot.
-rwxr-xr-x | scripts/init/vyos-router | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router index c614a4e..47896d1 100755 --- a/scripts/init/vyos-router +++ b/scripts/init/vyos-router @@ -226,6 +226,9 @@ security_reset () rm -rf /etc/ipsec.conf /etc/ipsec.secrets find /etc/swanctl -type f | xargs rm -f + # limit cleanup + rm -f /etc/security/limits.d/10-vyos.conf + # iproute2 cleanup rm -f /etc/iproute2/rt_tables.d/vyos-*.conf |