-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-entrypoint.sh
52 lines (40 loc) · 1.29 KB
/
docker-entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
set -e
if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
echo >&2 "Validando la instalación de melab"
if ! [ -f index.php ]; then
echo >&2 "melab no encontrado en $(pwd) - copiando..."
tar cf - --one-file-system -C /usr/src/certificados . | tar xf -
chmod +x script.sh
#mv /connect.inc.php ./include/connect.inc.php
#mv /config_ldap.inc.php ./include/config_ldap.inc.php
rm -f melab.tar
echo >&2 "OK! melab ha sido copiado en $(pwd)"
fi
echo >&2 "========================================================================"
echo >&2
echo >&2 " Este contenedor esta corriendo melab!"
echo >&2
echo >&2 "========================================================================"
fi
##chmod 775 -Rf /var/www/html/admin/error_log
echo "Docker container has been started"
# Setup a cron schedule
echo "APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120" > /usr/src/certificados/.env
exec apache2-foreground