-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathentrypoint.sh
More file actions
30 lines (24 loc) · 820 Bytes
/
entrypoint.sh
File metadata and controls
30 lines (24 loc) · 820 Bytes
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
#!/bin/bash
if [ ! -z "$ENABLE_SSL" ]; then
echo 'Enabling SSL support'
/usr/sbin/a2ensite default-ssl
/usr/sbin/a2enmod ssl
fi
echo "###########################################"
date
echo "###########################################"
echo "Copying apache modules"
cp /etc/apache2/mods-available/proxy* /etc/apache2/mods-enabled
cp /etc/apache2/mods-available/vhost_alias.load /etc/apache2/mods-enabled
cp /etc/apache2/mods-available/request.load /etc/apache2/mods-enabled
cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled
cp /etc/apache2/mods-available/xml2enc.load /etc/apache2/mods-enabled
cp /etc/apache2/mods-available/slotmem_shm.load /etc/apache2/mods-enabled
echo "Checking configuration"
apache2ctl -t
echo "Starting httpd deamon"
service apache2 start
while true
do
sleep 30
done