mirror of
https://github.com/11notes/docker-kms.git
synced 2025-10-22 20:42:17 +00:00
28 lines
524 B
Bash
28 lines
524 B
Bash
#!/bin/ash
|
|
if [ -z "${1}" ]; then
|
|
|
|
if [ ! -z "${DEBUG}" ]; then
|
|
KMS_LOGLEVEL="DEBUG"
|
|
eleven log debug "setting kms log level to DEBUG"
|
|
else
|
|
KMS_LOGLEVEL="INFO"
|
|
fi
|
|
|
|
cd /opt/py-kms
|
|
set -- "python3" \
|
|
pykms_Server.py \
|
|
:: \
|
|
1688 \
|
|
-l ${KMS_LOCALE} \
|
|
-a ${KMS_ACTIVATIONINTERVAL} \
|
|
-r ${KMS_RENEWALINTERVAL} \
|
|
-s /kms/var/kms.db \
|
|
-w RANDOM \
|
|
-V ${KMS_LOGLEVEL} \
|
|
-F STDOUT \
|
|
-y
|
|
|
|
eleven log start
|
|
fi
|
|
|
|
exec "$@" |