[ACME] Do not trim after each push to Redis
This commit is contained in:
@@ -15,7 +15,6 @@ log_f() {
|
|||||||
fi
|
fi
|
||||||
redis-cli -h redis LPUSH ACME_LOG "{\"time\":\"$(date +%s)\",\"message\":\"$(printf '%s' "${1}" | \
|
redis-cli -h redis LPUSH ACME_LOG "{\"time\":\"$(date +%s)\",\"message\":\"$(printf '%s' "${1}" | \
|
||||||
tr '%&;$"_[]{}-\r\n' ' ')\"}" > /dev/null
|
tr '%&;$"_[]{}-\r\n' ' ')\"}" > /dev/null
|
||||||
redis-cli -h redis LTRIM ACME_LOG 0 ${LOG_LINES} > /dev/null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "${SKIP_LETS_ENCRYPT}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
if [[ "${SKIP_LETS_ENCRYPT}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
||||||
|
Reference in New Issue
Block a user