Forum archive
Problem configuring webmin module manually
I am trying to write a shell script to config an openvpn webmin module via command line but it's not working. I edit /usr/share/webmin/openvpn/config using sed. The changes are saved to the file, but when I load the module configuration in webmin, the changes do not show up. Am I not editing the right file? Everything I looked up points me to that file.
I wish I could see how TKL Mysql and similar appliances that install webmin modules do it.
Also, how does TKL OpenVPN sound? I want to replace my current openvpn server, so I figured TKL Core is a good starting point.
Regarding your first question, don't touch anything in /usr/share. That goes against Debian Policy because a package upgrade could wipe your changes out. We configure webmin by tweaking files in /etc/webmin. For example here's how we configure Webmin to list on port 12321:
set ${WEBMIN_PORT:=12321} sed --in-place "s/10000/$WEBMIN_PORT/g" /etc/webmin/miniserv.confRegarding your second question, TurnKey appliances install webmin modules via the package manager:There's an OpenVPN module for Webmin but unfortunately I'm not sure you'll be able to install it via the package manager yet, since its not in the list of packaged modules:We package Webmin ourselves though so if you make a prototype we'll take care of that in the next release. In the meantime just install it manually.