Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el-captain-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el-captain-manager
Commits
c4962789
Commit
c4962789
authored
Jul 05, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix entrypoint: quote env var values in .env to handle spaces
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
929d4d76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
entrypoint.sh
docker/entrypoint.sh
+5
-3
No files found.
docker/entrypoint.sh
View file @
c4962789
...
@@ -7,9 +7,11 @@ mkdir -p storage/framework/{cache/data,sessions,views} storage/logs bootstrap/ca
...
@@ -7,9 +7,11 @@ mkdir -p storage/framework/{cache/data,sessions,views} storage/logs bootstrap/ca
chown
-R
www-data:www-data storage bootstrap/cache
chown
-R
www-data:www-data storage bootstrap/cache
chmod
-R
775 storage bootstrap/cache
chmod
-R
775 storage bootstrap/cache
# Write Docker env vars to .env so config:cache picks them up
# Write Docker env vars to .env (quoted) so config:cache picks them up
# This ensures runtime env vars from CapRover override .env.example defaults
:
>
.env
env
|
grep
-E
"^(APP_|DB_|LOG_|SESSION_|CACHE_|QUEUE_|FILESYSTEM_|BROADCAST_|MAIL_|CAPROVER_|PG_ADMIN_|SHARED_PG_|ELCAPTAIN_|TRUSTED_|BCRYPT_)"
|
sort
>
.env
env
|
grep
-E
"^(APP_|DB_|LOG_|SESSION_|CACHE_|QUEUE_|FILESYSTEM_|BROADCAST_|MAIL_|CAPROVER_|PG_ADMIN_|SHARED_PG_|ELCAPTAIN_|TRUSTED_|BCRYPT_)"
|
sort
|
while
IFS
=
'='
read
-r
key value
;
do
echo
"
${
key
}
=
\"
${
value
}
\"
"
>>
.env
done
# Generate APP_KEY if not set
# Generate APP_KEY if not set
if
[
-z
"
$APP_KEY
"
]
;
then
if
[
-z
"
$APP_KEY
"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment