Skip to content

Commit 17a3c3a

Browse files
committed
Merge branch 'hotfix-0.6.6' into stable
2 parents d0f6f54 + 88d0d42 commit 17a3c3a

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.6.6
4+
- Upgrade baseimage: web-baseimage:0.1.7
5+
- Makefile with build no cache
6+
37
## 0.6.5
48
- Upgrade baseimage: web-baseimage:0.1.6
59

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
NAME = osixia/phpldapadmin
2-
VERSION = 0.6.5
2+
VERSION = 0.6.6
33

4-
.PHONY: all build test tag_latest release
4+
.PHONY: all build build-nocache test tag_latest release
55

66
all: build
77

88
build:
99
docker build -t $(NAME):$(VERSION) --rm image
1010

11+
build-nocache:
12+
docker build -t $(NAME):$(VERSION) --no-cache --rm image
13+
1114
test:
1215
env NAME=$(NAME) VERSION=$(VERSION) bats test/test.bats
1316

image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM osixia/web-baseimage:0.1.6
1+
FROM osixia/web-baseimage:0.1.7
22
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net>
33

44
# phpLDAPadmin version

image/service/ldap-client/container-start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
1111
/sbin/ssl-helper "/container/service/ldap-client/assets/certs/${PHPLDAPADMIN_LDAP_CLIENT_TLS_CRT_FILENAME}" "/container/service/ldap-client/assets/certs/${PHPLDAPADMIN_LDAP_CLIENT_TLS_KEY_FILENAME}" --ca-crt=/container/service/ldap-client/assets/certs/${PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME} --gnutls
1212

1313
# ldap client config
14-
sed -i "s,TLS_CACERT.*,TLS_CACERT /container/service/ldap-client/assets/certs/${PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME},g" /etc/ldap/ldap.conf
14+
sed -i --follow-symlinks "s,TLS_CACERT.*,TLS_CACERT /container/service/ldap-client/assets/certs/${PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME},g" /etc/ldap/ldap.conf
1515
echo "TLS_REQCERT $PHPLDAPADMIN_LDAP_CLIENT_TLS_REQCERT" >> /etc/ldap/ldap.conf
1616

1717
www_data_homedir=$( getent passwd "www-data" | cut -d: -f6 )

image/service/phpldapadmin/container-start.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
1313

1414
# add CA certificat config if CA cert exists
1515
if [ -e "/container/service/phpldapadmin/assets/apache2/certs/$PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME" ]; then
16-
sed -i "s/#SSLCACertificateFile/SSLCACertificateFile/g" /container/service/phpldapadmin/assets/apache2/phpldapadmin-ssl.conf
16+
sed -i --follow-symlinks "s/#SSLCACertificateFile/SSLCACertificateFile/g" /container/service/phpldapadmin/assets/apache2/phpldapadmin-ssl.conf
1717
fi
1818

1919
a2ensite phpldapadmin-ssl
@@ -27,20 +27,20 @@ if [ ! -e "$FIRST_START_DONE" ]; then
2727
cp -R /var/www/phpldapadmin_bootstrap/* /var/www/phpldapadmin
2828
rm -rf /var/www/phpldapadmin_bootstrap
2929

30-
echo "link /container/service/phpldapadmin/assets/config.php to /var/www/phpldapadmin/config/config.php"
31-
ln -s /container/service/phpldapadmin/assets/config.php /var/www/phpldapadmin/config/config.php
30+
echo "copy /container/service/phpldapadmin/assets/config.php to /var/www/phpldapadmin/config/config.php"
31+
cp -f /container/service/phpldapadmin/assets/config.php /var/www/phpldapadmin/config/config.php
3232

3333
get_salt() {
3434
salt=$(</dev/urandom tr -dc '1324567890#<>,()*.^@$% =-_~;:/{}[]+!`azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN' | head -c64 | tr -d '\\')
3535
}
3636

3737
# phpLDAPadmin cookie secret
3838
get_salt
39-
sed -i "s|{{ PHPLDAPADMIN_CONFIG_BLOWFISH }}|${salt}|g" /var/www/phpldapadmin/config/config.php
39+
sed -i --follow-symlinks "s|{{ PHPLDAPADMIN_CONFIG_BLOWFISH }}|${salt}|g" /var/www/phpldapadmin/config/config.php
4040

4141
append_to_servers() {
4242
TO_APPEND=$1
43-
sed -i "s|{{ PHPLDAPADMIN_SERVERS }}|${TO_APPEND}\n{{ PHPLDAPADMIN_SERVERS }}|g" /var/www/phpldapadmin/config/config.php
43+
sed -i --follow-symlinks "s|{{ PHPLDAPADMIN_SERVERS }}|${TO_APPEND}\n{{ PHPLDAPADMIN_SERVERS }}|g" /var/www/phpldapadmin/config/config.php
4444
}
4545

4646
print_by_php_type() {
@@ -127,7 +127,7 @@ if [ ! -e "$FIRST_START_DONE" ]; then
127127
fi
128128
done
129129

130-
sed -i "/{{ PHPLDAPADMIN_SERVERS }}/d" /var/www/phpldapadmin/config/config.php
130+
sed -i --follow-symlinks "/{{ PHPLDAPADMIN_SERVERS }}/d" /var/www/phpldapadmin/config/config.php
131131

132132
fi
133133

image/service/phpldapadmin/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rm -rf /var/www/phpldapadmin_bootstrap/doc
2020

2121
# apply php5.5 patch
2222
patch -p1 -d /var/www/phpldapadmin_bootstrap < /container/service/phpldapadmin/assets/php5.5.patch
23-
sed -i "s/password_hash/password_hash_custom/g" /var/www/phpldapadmin_bootstrap/lib/TemplateRender.php
23+
sed -i --follow-symlinks "s/password_hash/password_hash_custom/g" /var/www/phpldapadmin_bootstrap/lib/TemplateRender.php
2424

2525
# fix php5-fpm $_SERVER['SCRIPT_NAME'] bad value with cgi.fix_pathinfo=0
26-
sed -i "s/'SCRIPT_NAME'/'PATH_INFO'/g" /var/www/phpldapadmin_bootstrap/lib/common.php
26+
sed -i --follow-symlinks "s/'SCRIPT_NAME'/'PATH_INFO'/g" /var/www/phpldapadmin_bootstrap/lib/common.php

0 commit comments

Comments
 (0)