forked from evolix/ansible-roles
evoacme: remove double caret in sed pattern
This commit is contained in:
parent
04c61407ed
commit
9519e226e9
|
@ -53,7 +53,7 @@ sed_cert_path_for_apache() {
|
||||||
if ! $(grep -qE "${search}" "${vhost_full_path}"); then
|
if ! $(grep -qE "${search}" "${vhost_full_path}"); then
|
||||||
[ -w "${vhost_full_path}" ] || error "File ${vhost_full_path} is not writable"
|
[ -w "${vhost_full_path}" ] || error "File ${vhost_full_path} is not writable"
|
||||||
|
|
||||||
sed -i "s~^${search}~${replace}~" "${vhost_full_path}"
|
sed -i "s~${search}~${replace}~" "${vhost_full_path}"
|
||||||
debug "Config in ${vhost_full_path} has been updated"
|
debug "Config in ${vhost_full_path} has been updated"
|
||||||
$(command -v apache2ctl) -t
|
$(command -v apache2ctl) -t
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue