mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-27 10:45:37 -04:00
Move enforce_wrapper() into appropiate CMDs. This speeds up --help as a side effect!
This commit is contained in:
parent
18c689f897
commit
f3794f939e
11 changed files with 34 additions and 25 deletions
|
@ -2,10 +2,12 @@ import click
|
|||
import subprocess
|
||||
from logger import logging
|
||||
from ssh import cmd_ssh
|
||||
from wrapper import enforce_wrap
|
||||
|
||||
|
||||
@click.command(name='forwarding')
|
||||
def cmd_forwarding():
|
||||
enforce_wrap()
|
||||
result = subprocess.run([
|
||||
'sysctl',
|
||||
'net.ipv4.ip_forward=1',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue