File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
image/service/phpldapadmin Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,17 @@ if [ ! -e "$FIRST_START_DONE" ]; then
106106 echo " \$ servers->setValue('server','name','${! infos[0]} ');" >> /var/www/phpldapadmin/config/config.php
107107 echo " \$ servers->setValue('server','host','${! infos[0]} ');" >> /var/www/phpldapadmin/config/config.php
108108 host_infos " " ${infos[1]}
109-
110- # it's just a host name
111- else
109+
110+ # it's just a host name
111+ # stored in a variable
112+ elif [ -n " ${! host} " ]; then
112113 echo " \$ servers->setValue('server','name','${! host} ');" >> /var/www/phpldapadmin/config/config.php
113114 echo " \$ servers->setValue('server','host','${! host} ');" >> /var/www/phpldapadmin/config/config.php
115+
116+ # directly
117+ else
118+ echo " \$ servers->setValue('server','name','${host} ');" >> /var/www/phpldapadmin/config/config.php
119+ echo " \$ servers->setValue('server','host','${host} ');" >> /var/www/phpldapadmin/config/config.php
114120 fi
115121 done
116122
You can’t perform that action at this time.
0 commit comments