[Kolab-devel] [issue3408] Template for inclusion in shell scripts

Richard Bos kolab-issues at intevation.de
Mon Feb 16 22:47:54 CET 2009


New submission from Richard Bos <ml at radoeka.nl>:

I created a template that can be sourced in by shell scripts.  This way
it makes it possible for me to start or not start services that depend on the
value of the variable @@@postfix-enable-virus-scan@@@.

Based on the value of that variable it is now possible to start (or not start)
the services amavis, spamd, clamav, freshclam.

Is it okay to commit this template to cvs, I think that it is useful for others
too.

To include the template in the build, an small update to the Makefile.am is
needed:
diff -a -u -r1.49 Makefile.am
--- Makefile.am 17 Nov 2008 18:28:40 -0000      1.49
+++ Makefile.am 16 Feb 2009 21:39:00 -0000
@@ -53,6 +53,7 @@
        templates/ldapvirtual.cf.template \
        templates/kolab_smtpdpolicy.conf.template \
        templates/php.ini.template \
+       templates/profile.sh.template \
        templates/relocated.template \
        templates/resmgr.conf.template \
        templates/saslauthd.conf.template \

Once this template is available it can of course be used, to make more
kolab @@@variables know in this template.  It is not restricted to the one
variable that is in the file now.

----------
files: profile.sh.template.in
messages: 18590
nosy: bernhard, martin, mathieu.parent, rbos, thomas, till, wilde, wrobel
priority: feature
status: unread
title: Template for inclusion in shell scripts
topic: server
___________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://www.intevation.de/roundup/kolab/issue3408>
___________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profile.sh.template.in
Type: application/octet-stream
Size: 563 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20090216/9e914e63/attachment.obj>


More information about the devel mailing list