Skip to content

Commit 548dbc0

Browse files
committed
refactor(docker-entrypoint): remove unused DEBUG related references
As the configuration is now defined at build time and overriden at runtime strictly through environment variables, it s not necessary anymore to capture config file changes as they become immutable.
1 parent 52f17a7 commit 548dbc0

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

docker-entrypoint.sh

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ TZ="${TZ:-UTC}"
1515
PHP_MEMORY_LIMIT="${PHP_MEMORY_LIMIT:-256M}"
1616
UPLOAD_MAX_FILESIZE="${UPLOAD_MAX_FILESIZE:-8M}"
1717

18-
# If TRUE, outputs pre and post-change config files, if a /debug folder has also been mounted.
19-
# i.e. - '/opt/docker/configs/linkstack/debug:/debug:rw'
20-
# Useful for comparing (and fixing) changes, if necessary.
21-
DEBUG="TRUE"
22-
2318
# Read Current LLC Version
2419
# When version.json has CR/LF, it fx up, so have to add tr to remove the line endings.
2520
v="$(cat /htdocs/version.json | tr -d '\r\n')"
@@ -35,41 +30,11 @@ printf '| LINKSTACK v%s%*s|\n' "${v}" "$vlen" | tr ' ' " "
3530
# + ---------------- + #
3631

3732
echo '+ ------------------------------------------------------------------ +'
38-
echo '| Updating Configuration: Apache Base (/etc/apache2/httpd.conf) |'
39-
40-
# ALTER: Server Admin, Name, Document Root.
41-
42-
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/apache2/httpd.conf /debug/httpd.BEFORE.conf;fi
43-
44-
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/apache2/httpd.conf /debug/httpd.AFTER.conf;fi
45-
46-
# + -------------- + #
47-
# | -- SSL.CONF -- | #
48-
# + -------------- + #
49-
50-
echo '| Updating Configuration: Apache SSL (/etc/apache2/conf.d/ssl.conf) |'
51-
52-
# ALTER: SSL DocumentRoot and Log locations
53-
54-
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/apache2/conf.d/ssl.conf /debug/ssl.BEFORE.conf;fi
55-
56-
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/apache2/conf.d/ssl.conf /debug/ssl.AFTER.conf;fi
57-
58-
# + ------------- + #
59-
# | -- PHP.INI -- | #
60-
# + ------------- + #
61-
62-
echo '| Updating Configuration: PHP (/etc/php82/php.ini) |'
63-
64-
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/php82/php.ini /debug/php.BEFORE.ini;fi
65-
66-
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/php82/php.ini /debug/php.AFTER.ini;fi
6733

6834
# + ---------- + #
6935
# | -- MISC -- | #
7036
# + ---------- + #
7137

72-
echo '| Updating Configuration: Complete |'
7338
echo '| ------------------------------------------------------------------ |'
7439
echo '| Running Apache |'
7540
echo '+ ------------------------------------------------------------------ +'

0 commit comments

Comments
 (0)