How to set templates-custom in SME server 7.x

With regards to the online manual from contribs.org site, I found that these instruction has some steps missing if you want to customize your system configuration.



Using an example can say it all:



Objective: add custom config in /etc/resolv.conf



Steps:



1. Make a directory structure as follow: mkdir -p /etc/e-smith/templates-custom/etc/resolv.conf/



2.cp the file from /etc/e-smith/templates/etc/resolv.conf/ to /etc/e-smith/templates-custom/etc/resolv.conf/. In my case, I only copy 25nameserver.



3. vi 25nameserver. Type the text in file: nameserver 1.2.3.4



4. Save



5. Issue the command: expand-template /etc/resolv.conf



6. Issue the command again: signal-event reboot



Then, once restart completed, you can find that your customized settings has been applied



Step 5 and 6 are not noted in manual, or at least I cannot find it until I search the forum.



Hope it helps someone.





Powered by ScribeFire.

Comments

Popular posts from this blog

TCPDF How to show/display Chinese Character?

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

Using wget bypass htaccess username password 401 authorization