1
0
cloudlog-docker/docker-php-entrypoint

22 lines
439 B
Plaintext
Raw Permalink Normal View History

2024-04-04 22:32:46 +02:00
#!/bin/bash
2024-04-04 20:48:15 +02:00
set -e
2024-04-04 22:30:16 +02:00
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
2024-04-04 20:48:15 +02:00
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- php-fpm "$@"
fi
exec "$@"