1
0
cloudlog-docker/docker-php-entrypoint
Kristóf Torma e14a9d345c
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
use bash for entrypoint
2024-04-04 22:32:46 +02:00

22 lines
439 B
Bash

#!/bin/bash
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 "$@"