Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: SSBN on March 06, 2006, 07:21:34 PM
-
I have always wondered whey the templating system was used and kept after Mitel was(i think) out of the picture. This is in now way intended as a bash or a complete. I understand that it preserves the original config file so you can mess it up. But the added complexity from how I se it isn’t worth it. But then I suspect I am missing something hence this post.
I can’t think off one time that the templating system has saved my but and wonder if I am alone in this instance. I can think of plenty of times it has driven me nuts. Am I alone in this or just blind to its functionality.
I just wanted to state again this is not intended to be taken as criticism to the developers Mitel or the community.
-
Hi,
The templating system saves me time with the users. Having a single place that I can make a modification to the .qmail file is pretty helpful.
Beyond that it certainly offers a clean way for everyone to integrate multiple contribs into the system. Hopefully, the modification of the template isn't that much of a burden in time. Although I'll admit that doing something simple like changing the webmail so that it's called wemail rather than horde can be a bit complex.
# Create the Directory & copy over the templates
rm -rf /etc/e-smith/templates-custom/home/httpd/html/horde
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/
cp -Ra /etc/e-smith/templates/home/httpd/html/horde \
/etc/e-smith/templates-custom/home/httpd/html/
# Substitute the string in Custom Templates
cd /etc/e-smith/templates-custom/home/httpd/html/horde/config/registry.php
mv 110AppRegistryHorde 110AppRegistryHorde.old
sed -e 's/"Horde"/"Webmail"/' \
110AppRegistryHorde.old > 110AppRegistryHorde
rm -f 110AppRegistryHorde.old
# Do the same substitution on the live file
cd /home/httpd/html/horde/config/
mv registry.php registry.php.old
sed -e 's/"Horde"/"Webmail"/' \
registry.php.old > registry.php
rm -f registry.php.old
But fundamentally it's just a matter of 1,2,3:
1. Copy the template to templates custome
2. grep the template for the settings.
3. Change the settings.
Maybe it is a bit harder, but it's a small price to pay for the functionality.
-
Maybe this old Linux dog just needs to learn a few new tricks.
I have started reading the Development guide and am starting to se it power.