diff options
author | Evgeny Khramtsov <xramtsov@gmail.com> | 2014-07-20 19:20:00 +0400 |
---|---|---|
committer | Evgeny Khramtsov <xramtsov@gmail.com> | 2014-07-20 19:20:00 +0400 |
commit | c0687123734ab4c32e0f77bb0951b4f8eb57a368 (patch) | |
tree | 94035701326422fc0cfe89a3deacaf301cb67bea | |
parent | Merge pull request #253 from weiss/fix-config-comments (diff) | |
parent | Replace bash-specific syntax in ejabberdctl (diff) |
Merge pull request #254 from weiss/replace-bashism
Replace bash-specific syntax in ejabberdctl
-rwxr-xr-x | ejabberdctl.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ejabberdctl.template b/ejabberdctl.template index 7a1f5ee98..9aca75c67 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/ *//') |