Line 62: |
Line 62: |
| | | |
| ===templates.metadata=== | | ===templates.metadata=== |
− | Template output, ownership, and other metadata can also be controlled by configuration settings stored under /etc/e-smith/templates.metadata. | + | Template output file location, ownership, and other metadata can also be controlled by configuration settings stored under /etc/e-smith/templates.metadata. |
| | | |
| While the default output location for most templated config files matches the path to the collection of template fragements, it is also possible to specify a different output filename using an entry within the /etc/e-smith/templates.metadata folder. | | While the default output location for most templated config files matches the path to the collection of template fragements, it is also possible to specify a different output filename using an entry within the /etc/e-smith/templates.metadata folder. |
| | | |
− | Specifically, the qpsmtpd 'plugins' directives in /etc/e-smith/templates/var/service/qpsmtpd/plugins do NOT affect the content of /var/service/qpsmtpd/plugins as expected.
| + | ====/var/service/qpsmtpd/config/peers/0==== |
| + | The qpsmtpd 'plugins' directives in /etc/e-smith/templates/var/service/qpsmtpd/config/plugins do NOT affect the content of /var/service/qpsmtpd/plugins as expected. |
| | | |
| Instead, due to this line in /etc/e-smith/'''templates.metadata'''/var/service/qpsmtpd/config/plugins: | | Instead, due to this line in /etc/e-smith/'''templates.metadata'''/var/service/qpsmtpd/config/plugins: |
Line 74: |
Line 75: |
| expand-template /var/service/qpsmtpd/config/plugins | | expand-template /var/service/qpsmtpd/config/plugins |
| | | |
− | Will actually updates the contents of /var/service/qpsmtpd/config/peers/0. | + | Will actually update the contents of /var/service/qpsmtpd/config/peers/0. |
| | | |
| + | Note: /var/service/qpsmtpd/config/plugins is not templated at this time. |
| + | |
| + | ====/etc/samba/smb.cnf==== |
| + | /etc/samba/smb.cnf is updated based on the template fragments in /etc/e-smith/templates/etc/smb.cnf |
| | | |
| ===Specific practical examples=== | | ===Specific practical examples=== |
Line 136: |
Line 141: |
| cp /etc/e-smith/templates/etc/my.cnf/005mysqld /etc/e-smith/templates-custom/etc/my.cnf/005mysqld | | cp /etc/e-smith/templates/etc/my.cnf/005mysqld /etc/e-smith/templates-custom/etc/my.cnf/005mysqld |
| Edit and make your required additions & changes. This is where you add the changes determined from the mysql documentation. | | Edit and make your required additions & changes. This is where you add the changes determined from the mysql documentation. |
− | pico -w /etc/e-smith/templates-custom/etc/my.cnf/005mysqld | + | nano -w /etc/e-smith/templates-custom/etc/my.cnf/005mysqld |
| Save and exit | | Save and exit |
| Ctrl o | | Ctrl o |
Line 171: |
Line 176: |
| cp /etc/e-smith/templates/etc/php.ini/40DataHandling /etc/e-smith/templates-custom/etc/php.ini/40DataHandling | | cp /etc/e-smith/templates/etc/php.ini/40DataHandling /etc/e-smith/templates-custom/etc/php.ini/40DataHandling |
| Edit the fragment and make your required changes | | Edit the fragment and make your required changes |
− | pico -w /etc/e-smith/templates-custom/etc/php.ini/40DataHandling | + | nano -w /etc/e-smith/templates-custom/etc/php.ini/40DataHandling |
| Save changes and exit (press the following keys together) | | Save changes and exit (press the following keys together) |
| Ctrl o | | Ctrl o |
Line 189: |
Line 194: |
| mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf | | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf |
| | | |
− | Edit the template fragment with vi or pico | + | Edit the template fragment with vi or nano |
| cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf | | cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf |
− | pico S85ErrorPages | + | nano S85ErrorPages |
| and add the following text | | and add the following text |
| # Add custom error pages here | | # Add custom error pages here |
| ErrorDocument 404 /notfound.html | | ErrorDocument 404 /notfound.html |
| | | |
− | Save & exit from vi or pico | + | Save & exit from vi or nano |
| Ctrl c | | Ctrl c |
| Ctrl x | | Ctrl x |
Line 234: |
Line 239: |
| cp /etc/e-smith/templates/etc/smb.conf/11lanmanPasswords /etc/e-smith/custom-templates/etc/smb.conf/ | | cp /etc/e-smith/templates/etc/smb.conf/11lanmanPasswords /etc/e-smith/custom-templates/etc/smb.conf/ |
| | | |
− | Edit the template fragment with vi, pico or nano | + | Edit the template fragment with vi, nano or nano |
| cd /etc/e-smith/custom-templates/etc/smb.conf | | cd /etc/e-smith/custom-templates/etc/smb.conf |
| nano 11lanmanPasswords | | nano 11lanmanPasswords |
Line 389: |
Line 394: |
| ---- | | ---- |
| [[Category:Howto]] | | [[Category:Howto]] |
| + | [[Category:Developer]] |