mirror of
https://github.com/element-hq/element-web.git
synced 2026-01-11 19:56:47 +00:00
Ensure container starts if it is mounted with an empty /modules directory. (#30699)
* Set nullglob * Replace with a if statement (because we're using sh) * combine if
This commit is contained in:
parent
1386bc9f5c
commit
1c30bec083
1 changed files with 2 additions and 3 deletions
|
|
@ -14,10 +14,9 @@ entrypoint_log() {
|
|||
mkdir -p /tmp/element-web-config
|
||||
cp /app/config*.json /tmp/element-web-config/
|
||||
|
||||
# If there are modules to be loaded
|
||||
if [ -d "/modules" ]; then
|
||||
# If the module directory exists AND the module directory has modules in it
|
||||
if [ -d "/modules" ] && [ "$( ls -A '/modules' )" ]; then
|
||||
cd /modules
|
||||
|
||||
for MODULE in *
|
||||
do
|
||||
# If the module has a package.json, use its main field as the entrypoint
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue