mirror of
https://github.com/11notes/docker-kms-gui.git
synced 2025-11-03 04:33:13 +00:00
add KMS_GUI_STYLE
This commit is contained in:
@@ -6,6 +6,20 @@
|
||||
eleven log debug "setting kms-gui log level to DEBUG"
|
||||
fi
|
||||
|
||||
# apply correct style
|
||||
rm -rf /opt/py-kms/templates
|
||||
TEMPLATE_DIR=${APP_ROOT}/.default/templates
|
||||
case ${KMS_GUI_STYLE} in
|
||||
py-kms)
|
||||
ln -s ${TEMPLATE_DIR}/py-kms /opt/py-kms/templates
|
||||
eleven log info "using ${KMS_GUI_STYLE} GUI style"
|
||||
;;
|
||||
*)
|
||||
ln -s ${TEMPLATE_DIR}/custom-icon /opt/py-kms/templates
|
||||
eleven log info "using default GUI style"
|
||||
;;
|
||||
esac
|
||||
|
||||
cd /opt/py-kms
|
||||
set -- "gunicorn" \
|
||||
--log-level ${LOG_LEVEL} \
|
||||
|
||||
Reference in New Issue
Block a user