Files
containers/.vib/opencart/goss/opencart.yaml
Carlos Rodríguez Hernández 45d7897631 [bitnami/*] Set new header/owner (#66218)
Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
2024-05-06 15:06:33 +02:00

38 lines
1.0 KiB
YAML

# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
command:
check-app-version:
# The 'sed' expression converts the version to be format used by APP_VERSION
exec: grep -Eo "'VERSION', '[^']*'" /opt/bitnami/opencart/index.php | sed -E 's/([0-9]+\.[0-9]+\.[0-9]+)\.([0-9]+)/\1-\2/'
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/opencart-vhost.conf:
exists: true
filetype: file
contents:
- /DocumentRoot.*/opt/bitnami/opencart/
# HTTPS vhost should have been properly rendered
/opt/bitnami/apache/conf/vhosts/opencart-https-vhost.conf:
exists: true
filetype: file
contents:
- "SSLEngine on"
- /DocumentRoot.*/opt/bitnami/opencart/
group:
daemon:
exists: true
user:
daemon:
exists: true