mirror of
https://github.com/bitnami/containers.git
synced 2026-03-27 15:27:48 +08:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
command:
|
|
check-app-version:
|
|
exec: grep -Eo "'_PS_INSTALL_VERSION_', '[^']*'" /opt/bitnami/prestashop/install/install_version.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:
|
|
/opt/bitnami/php/etc/php.ini:
|
|
exists: true
|
|
filetype: file
|
|
contents:
|
|
- "post_max_size = 128M"
|
|
- "upload_max_filesize = 128M"
|
|
# Ensure that .htaccess file contents have not been moved to /opt/bitnami/apache/conf/vhosts/htaccess
|
|
/opt/bitnami/prestashop/app/.htaccess:
|
|
exists: true
|
|
filetype: file
|
|
contents:
|
|
- "Require all denied"
|
|
# HTTP vhost should have been properly rendered
|
|
/opt/bitnami/apache/conf/vhosts/prestashop-vhost.conf:
|
|
exists: true
|
|
filetype: file
|
|
contents:
|
|
- /DocumentRoot.*/opt/bitnami/prestashop/
|
|
# HTTPS vhost should have been properly rendered
|
|
/opt/bitnami/apache/conf/vhosts/prestashop-https-vhost.conf:
|
|
exists: true
|
|
filetype: file
|
|
contents:
|
|
- "SSLEngine on"
|
|
- /DocumentRoot.*/opt/bitnami/prestashop/
|
|
group:
|
|
daemon:
|
|
exists: true
|
|
user:
|
|
daemon:
|
|
exists: true
|