mirror of
https://github.com/bitnami/containers.git
synced 2026-03-29 08:17:42 +08:00
39 lines
976 B
YAML
39 lines
976 B
YAML
# Copyright VMware, Inc.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
command:
|
|
check-app-version:
|
|
exec: grep "'version'\s*=>" /opt/bitnami/osclass/oc-content/languages/en_US/index.php
|
|
exit-status: 0
|
|
stdout:
|
|
- "{{ .Env.APP_VERSION }}"
|
|
check-enabled-modules:
|
|
exec: php -m
|
|
exit-status: 0
|
|
stdout:
|
|
{{ range $module := .Vars.phpmodules }}
|
|
- "{{ $module }}"
|
|
{{ end }}
|
|
file:
|
|
# HTTP vhost should have been properly rendered
|
|
/opt/bitnami/apache/conf/vhosts/osclass-vhost.conf:
|
|
exists: true
|
|
filetype: file
|
|
contents:
|
|
- /DocumentRoot.*/opt/bitnami/osclass/
|
|
- 'RewriteRule "^/oc-admin$"'
|
|
# HTTPS vhost should have been properly rendered
|
|
/opt/bitnami/apache/conf/vhosts/osclass-https-vhost.conf:
|
|
exists: true
|
|
filetype: file
|
|
contents:
|
|
- "SSLEngine on"
|
|
- /DocumentRoot.*/opt/bitnami/osclass/
|
|
- 'RewriteRule "^/oc-admin$"'
|
|
group:
|
|
daemon:
|
|
exists: true
|
|
user:
|
|
daemon:
|
|
exists: true
|