Skip to content

Commit 1317579

Browse files
committed
move php config file to config dir
1 parent 419a6a3 commit 1317579

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changelog
22

33
## 0.7.0
4+
- add config.php in config folder
45
- Upgrade baseimage: web-baseimage:1.1.0 (debian stretch, php7)
56

67
## 0.6.12
7-
- Fixes Parse error: syntax error, unexpected '}' in /container/service/phpldapadmin/assets/config.php on line 68 #23
8+
- Fixes Parse error: syntax error, unexpected '}' in config.php on line 68 #23
89
- Upgrade baseimage: web-baseimage:1.0.0
910

1011
## 0.6.11

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Example script:
6464
This image comes with a phpLDAPadmin config.php file that can be easily customized via environment variables for a quick bootstrap,
6565
but setting your own config.php is possible. 2 options:
6666

67-
- Link your config file at run time to `/container/service/phpldapadmin/assets/config.php` :
67+
- Link your config file at run time to `/container/service/phpldapadmin/assets/config/config.php` :
6868

69-
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config.php --detach osixia/phpldapadmin:0.7.0
69+
docker run --volume /data/my-config.php:/container/service/phpldapadmin/assets/config/config.php --detach osixia/phpldapadmin:0.7.0
7070

7171
- Add your config file by extending or cloning this image, please refer to the [Advanced User Guide](#advanced-user-guide)
7272

@@ -231,7 +231,7 @@ Dockerfile example:
231231

232232
ADD https-certs /container/service/phpldapadmin/assets/apache2/certs
233233
ADD ldap-certs /container/service/ldap-client/assets/certs
234-
ADD my-config.php /container/service/phpldapadmin/assets/config.php
234+
ADD my-config.php /container/service/phpldapadmin/assets/config/config.php
235235
ADD environment /container/environment/01-custom
236236

237237

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add your custom config.php file here or mount one at docker run to /container/service/phpldapadmin/assets/config.php
1+
Add your custom config.php file here or mount one at docker run to /container/service/phpldapadmin/assets/config/config.php

image/service/phpldapadmin/startup.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ if [ ! -e "/var/www/phpldapadmin/config/config.php" ]; then
6464

6565
# phpLDAPadmin cookie secret
6666
get_salt
67-
sed -i "s|{{ PHPLDAPADMIN_CONFIG_BLOWFISH }}|${salt}|g" ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config.php
67+
sed -i "s|{{ PHPLDAPADMIN_CONFIG_BLOWFISH }}|${salt}|g" ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config/config.php
6868

6969
append_to_file() {
7070
TO_APPEND=$1
71-
sed -i "s|{{ PHPLDAPADMIN_SERVERS }}|${TO_APPEND}\n{{ PHPLDAPADMIN_SERVERS }}|g" ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config.php
71+
sed -i "s|{{ PHPLDAPADMIN_SERVERS }}|${TO_APPEND}\n{{ PHPLDAPADMIN_SERVERS }}|g" ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config/config.php
7272
}
7373

7474
append_value_to_file() {
@@ -129,13 +129,13 @@ if [ ! -e "/var/www/phpldapadmin/config/config.php" ]; then
129129
fi
130130
done
131131

132-
sed -i "/{{ PHPLDAPADMIN_SERVERS }}/d" ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config.php
132+
sed -i "/{{ PHPLDAPADMIN_SERVERS }}/d" ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config/config.php
133133

134134
touch $FIRST_START_DONE
135135
fi
136136

137-
log-helper debug "link ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config.php to /var/www/phpldapadmin/config/config.php"
138-
cp -f ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config.php /var/www/phpldapadmin/config/config.php
137+
log-helper debug "link ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config/config.php to /var/www/phpldapadmin/config/config.php"
138+
cp -f ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/config/config.php /var/www/phpldapadmin/config/config.php
139139

140140
fi
141141

0 commit comments

Comments
 (0)