add KMS_LOGLEVEL

This commit is contained in:
ElevenNotes
2023-08-31 00:27:16 +02:00
parent e3e770ede2
commit deb26f95fc
3 changed files with 7 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
if [ -z "${KMS_LOCALE}" ]; then KMS_LOCALE=1033; fi
if [ -z "${KMS_ACTIVATIONINTERVAL}" ]; then KMS_ACTIVATIONINTERVAL=120; fi
if [ -z "${KMS_RENEWALINTERVAL}" ]; then KMS_RENEWALINTERVAL=259200; fi
if [ -z "${KMS_LOGLEVEL}" ]; then KMS_LOGLEVEL="INFO"; fi
if [ -z "$1" ]; then
set -- "python3" \
@@ -16,10 +17,11 @@
-r ${KMS_RENEWALINTERVAL} \
-s /kms/var/kms.db \
-w RANDOM \
-V ERROR \
-F STDOUT \
-V ${KMS_LOGLEVEL} \
-F FILEOFF \
-t0 600 \
-t1 300
-t1 300 \
-y
fi
exec "$@"