E
E
Egor2017-03-31 15:57:27
linux
Egor, 2017-03-31 15:57:27

How to create config file in bash script?

Hello, please tell me how it is more convenient to edit a script that will create a config like this:
[remmina]
disableclipboard=0
ssh_auth=0
clientname=
quality=0
ssh_charset=
ssh_privatekey=
console=0
resolution=
group=
password=
name=Office
ssh_loopback=0
shareprinter=0
ssh_username=
ssh_server=
security=rdp
protocol=RDP
execpath=
sound=off
exec=
ssh_enabled=0
username=
sharefolder=
domain=domain
server=192.168.10.32
colordepth=24
keyboard_grab=1
viewmode=4
window_maximize=1
cert_ignore=0
loadbalanceinfo=
postcommand=
gateway_server=
disablepasswordstoring=0
sharesmartcard=0
gateway_usage=0
precommand=
microphone=0
window_height=508
window_width=640
toolbar_opacity=3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2017-03-31
@Sanes

I would do it through Ansible templates.
In the footer there is a link to the source code, there is an example of creating configs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question