1
0
cloudlog-docker/docker-php-entrypoint
Kristóf Torma 965a5ff202
All checks were successful
continuous-integration/drone/push Build is passing
prod ready
2024-04-04 22:30:16 +02:00

22 lines
437 B
Bash

#!/bin/sh
set -e
shopt -s extglob
cp -r /var/www/cloudlog/!(backup|updates|uploads|application|images) /var/www/html
mkdir -p /var/www/html/images
cp -r /var/www/cloudlog/images/!(eqsl_card_images) /var/www/html/images
mkdir -p /var/www/html/application
cp -r /var/www/cloudlog/application/!(config|logs) /var/www/html/images
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- php-fpm "$@"
fi
exec "$@"