编写部署前检查项(EULA和POLICY)
This commit is contained in:
8
helm-chart/templates/pre-check.yaml
Normal file
8
helm-chart/templates/pre-check.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# 检查EULA和PRIVACY
|
||||||
|
{{- if not .Values.core.EULA_AGREE }}
|
||||||
|
{{- fail "You must accept the EULA by setting 'core.EULA_AGREE: true'. EULA: https://github.com/MaiM-with-u/MaiBot/blob/main/EULA.md" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if not .Values.core.PRIVACY_AGREE }}
|
||||||
|
{{- fail "You must accept the Privacy Policy by setting 'core.PRIVACY_AGREE: true'. Privacy Policy: https://github.com/MaiM-with-u/MaiBot/blob/main/PRIVACY.md" }}
|
||||||
|
{{- end }}
|
||||||
Reference in New Issue
Block a user