mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-25 18:08:22 -04:00
Don't wrap in docker for little wrappers like ssh and telnet if the tool is available on the host
This commit is contained in:
parent
1d172ad635
commit
f424e9ce8f
5 changed files with 15 additions and 6 deletions
|
@ -2,12 +2,13 @@ import click
|
|||
import subprocess
|
||||
from logger import logging
|
||||
from ssh import cmd_ssh
|
||||
from wrapper import enforce_wrap
|
||||
from wrapper import check_programs_wrap
|
||||
|
||||
|
||||
@click.command(name='forwarding')
|
||||
def cmd_forwarding():
|
||||
enforce_wrap()
|
||||
check_programs_wrap(['syctl', 'iptables'])
|
||||
|
||||
result = subprocess.run([
|
||||
'sysctl',
|
||||
'net.ipv4.ip_forward=1',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue