Use printenv when writing runtime env
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
"description": "Next-gen knowledge base that blends docs, whiteboards, and databases for self-hosted teams.",
|
"description": "Next-gen knowledge base that blends docs, whiteboards, and databases for self-hosted teams.",
|
||||||
"website": "https://affine.pro",
|
"website": "https://affine.pro",
|
||||||
"contactEmail": "support@affine.pro",
|
"contactEmail": "support@affine.pro",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"changelog": "Initial Cloudron packaging",
|
"changelog": "Initial Cloudron packaging",
|
||||||
"manifestVersion": 2,
|
"manifestVersion": 2,
|
||||||
"minBoxVersion": "7.0.0",
|
"minBoxVersion": "7.0.0",
|
||||||
|
|||||||
2
start.sh
2
start.sh
@@ -147,7 +147,7 @@ write_runtime_env() {
|
|||||||
)
|
)
|
||||||
local var value
|
local var value
|
||||||
for var in "${vars[@]}"; do
|
for var in "${vars[@]}"; do
|
||||||
value="${!var-}"
|
value=$(printenv "$var" 2>/dev/null || true)
|
||||||
if [ -n "$value" ]; then
|
if [ -n "$value" ]; then
|
||||||
printf '%s=%q\n' "$var" "$value" >> "$ENV_EXPORT_FILE"
|
printf '%s=%q\n' "$var" "$value" >> "$ENV_EXPORT_FILE"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user