Skip to content

Commit 6152d40

Browse files
committed
better config file
1 parent abd0b29 commit 6152d40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

image/service/phpldapadmin/container-start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ if [ ! -e "$FIRST_START_DONE" ]; then
7373
elif [ "${#value_of_value_table[@]}" -gt "1" ]; then
7474
host_infos_value "$to_print'$key'," "$value"
7575

76+
# the value contain a not empty variable
77+
elif [ -n "${!value}" ]; then
78+
local php_value=$(print_by_php_type ${!value})
79+
echo "\$servers->setValue($to_print'$key',$php_value);" >> /osixia/phpldapadmin/config.php
80+
7681
# it's just a not empty value
7782
elif [ -n "$value" ]; then
7883
local php_value=$(print_by_php_type $value)

0 commit comments

Comments
 (0)