Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit e1e7617

Browse files
authored
Merge pull request #115 from jdeathe/issue/104
CLOSES #104: Fixes systemd unit file change that was missed from last release.
2 parents a975261 + da756b6 commit e1e7617

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Summary of release changes.
1010
- Updates README.md to simplify contents and improve readability.
1111
- Updates README-short.txt to apply to all image variants.
1212
- Updates Dockerfile `org.deathe.description` metadata LABEL for consistency.
13+
- Fixes binary paths in systemd unit files; missing changes from last release.
1314

1415
### 2.2.1 - 2019-03-20
1516

src/etc/systemd/system/centos-ssh-memcached@.service

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,27 +129,27 @@ ExecStart=/bin/bash -c \
129129
--env \"MEMCACHED_OPTIONS=${MEMCACHED_OPTIONS}\" \
130130
$(if [[ ${DOCKER_PORT_MAP_TCP_11211} != NULL ]]; \
131131
then \
132-
if /usr/bin/grep -qE \
132+
if /bin/grep -qE \
133133
'^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:)?[1-9][0-9]*$' \
134134
<<< \"${DOCKER_PORT_MAP_TCP_11211}\"; \
135-
&& /usr/bin/grep -qE \
135+
&& /bin/grep -qE \
136136
'^.+\.[0-9]+(\.[0-9]+)?$' \
137137
<<< %p.%i; \
138138
then \
139139
printf -- '--publish %%s%%s:11211/tcp' \
140140
$(\
141-
/usr/bin/grep -o \
141+
/bin/grep -o \
142142
'^[0-9\.]*:' \
143143
<<< \"${DOCKER_PORT_MAP_TCP_11211}\" \
144144
) \
145145
$(( \
146146
$(\
147-
/usr/bin/grep -oE \
147+
/bin/grep -oE \
148148
'[0-9]+$' \
149149
<<< \"${DOCKER_PORT_MAP_TCP_11211}\" \
150150
) \
151151
+ $(\
152-
/usr/bin/grep -oE \
152+
/bin/grep -oE \
153153
'^[0-9]+' \
154154
<<< %i \
155155
) \
@@ -162,27 +162,27 @@ ExecStart=/bin/bash -c \
162162
fi) \
163163
$(if [[ ${DOCKER_PORT_MAP_UDP_11211} != NULL ]]; \
164164
then \
165-
if /usr/bin/grep -qE \
165+
if /bin/grep -qE \
166166
'^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:)?[1-9][0-9]*$' \
167167
<<< \"${DOCKER_PORT_MAP_UDP_11211}\"; \
168-
&& /usr/bin/grep -qE \
168+
&& /bin/grep -qE \
169169
'^.+\.[0-9]+(\.[0-9]+)?$' \
170170
<<< %p.%i; \
171171
then \
172172
printf -- '--publish %%s%%s:11211/udp' \
173173
$(\
174-
/usr/bin/grep -o \
174+
/bin/grep -o \
175175
'^[0-9\.]*:' \
176176
<<< \"${DOCKER_PORT_MAP_UDP_11211}\" \
177177
) \
178178
$(( \
179179
$(\
180-
/usr/bin/grep -oE \
180+
/bin/grep -oE \
181181
'[0-9]+$' \
182182
<<< \"${DOCKER_PORT_MAP_UDP_11211}\" \
183183
) \
184184
+ $(\
185-
/usr/bin/grep -oE \
185+
/bin/grep -oE \
186186
'^[0-9]+' \
187187
<<< %i \
188188
) \

0 commit comments

Comments
 (0)