Closed SaeedDev94 closed 4 months ago
Is it possible to pass config as string in yaml format instead of a file?
#!/bin/bash TUN_SETUP="$(realpath $0) routing" main() { CONF=" tunnel: mtu: 8500 post-up-script: '$TUN_SETUP' " hev-socks5-tunnel "$CONF" } routing() { # handle routing } case $1 in "routing") routing;; *) main;; esac
The separate file isn't easy to maintain ... I mean if someone like me wants to handle all jobs in a one script file that's not possible for now
How about creating a temp file for config?
echo "yaml ..." > /tmp/hs5t.yml hev-socks5-tunnel /tmp/hs5t.yml
Is it possible to pass config as string in yaml format instead of a file?
The separate file isn't easy to maintain ... I mean if someone like me wants to handle all jobs in a one script file that's not possible for now