]> granicus.if.org Git - ejabberd/commitdiff
Don't parse obsoleted options
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Sat, 19 Oct 2019 09:14:02 +0000 (12:14 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Sat, 19 Oct 2019 09:14:02 +0000 (12:14 +0300)
ejabberdctl.template

index a940c3df7f094d8216026aca2dd53cd2356b3917..a3b60a893ca328ea5f6551c21019ee087d514500 100755 (executable)
@@ -83,10 +83,8 @@ ERL_INETRC="$ETC_DIR"/inetrc
 
 # define ejabberd parameters
 EJABBERD_OPTS="$EJABBERD_OPTS\
-$(sed '/^log_rate_limit/!d;s/:[ \t]*\([0-9]*\).*/ \1/;s/^/ /' "$EJABBERD_CONFIG_PATH")\
 $(sed '/^log_rotate_size/!d;s/:[ \t]*\([0-9]*\).*/ \1/;s/^/ /' "$EJABBERD_CONFIG_PATH")\
-$(sed '/^log_rotate_count/!d;s/:[ \t]*\([0-9]*\).*/ \1/;s/^/ /' "$EJABBERD_CONFIG_PATH")\
-$(sed '/^log_rotate_date/!d;s/:[ \t]*\(.[^ ]*\).*/ \1/;s/^/ /' "$EJABBERD_CONFIG_PATH")"
+$(sed '/^log_rotate_count/!d;s/:[ \t]*\([0-9]*\).*/ \1/;s/^/ /' "$EJABBERD_CONFIG_PATH")"
 [ -n "$EJABBERD_OPTS" ] && EJABBERD_OPTS="-ejabberd $EJABBERD_OPTS"
 EJABBERD_OPTS="-mnesia dir \"$SPOOL_DIR\" $MNESIA_OPTIONS $EJABBERD_OPTS -s ejabberd"