summaryrefslogtreecommitdiff
path: root/ejabberdctl.template
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-07-20 13:24:28 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-07-20 13:24:28 +0200
commit467ccdffbd8cc77cf9176a4b26ea1c328e75cd53 (patch)
tree94035701326422fc0cfe89a3deacaf301cb67bea /ejabberdctl.template
parentMerge pull request #253 from weiss/fix-config-comments (diff)
Replace bash-specific syntax in ejabberdctl
Use plain POSIX shell syntax to match ".yml" configuration file names. This is also slightly more correct, as it matches ".yml" only at the *end* of the file name.
Diffstat (limited to 'ejabberdctl.template')
-rwxr-xr-xejabberdctl.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template
index 7a1f5ee9..9aca75c6 100755
--- a/ejabberdctl.template
+++ b/ejabberdctl.template
@@ -127,7 +127,7 @@ else
fi
# define ejabberd environment parameters
-if [ "$EJABBERD_CONFIG_PATH" != "${EJABBERD_CONFIG_PATH/.yml/}" ] ; then
+if [ "$EJABBERD_CONFIG_PATH" != "${EJABBERD_CONFIG_PATH%.yml}" ] ; then
rate=$(grep log_rate_limit $EJABBERD_CONFIG_PATH | cut -d':' -f2 | sed 's/ *//')
rotate=$(grep log_rotate_size $EJABBERD_CONFIG_PATH | cut -d':' -f2 | sed 's/ *//')
count=$(grep log_rotate_count $EJABBERD_CONFIG_PATH | cut -d':' -f2 | sed 's/ *//')