evoacme: remove $()

This commit is contained in:
Jérémy Lecour 2017-11-21 16:17:21 +01:00 committed by Jérémy Lecour
parent 86a9c9fc84
commit 7fee69ca22
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ sed_cert_path_for_apache() {
local search="^SSLCertificateFile.*$"
local replace="SSLCertificateFile ${cert_path}"
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"
sed -i "s~${search}~${replace}~" "${vhost_full_path}"
@ -68,7 +68,7 @@ sed_cert_path_for_nginx() {
local search="^ssl_certificate[^_].*$"
local replace="ssl_certificate ${cert_path};"
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"
sed -i "s~${search}~${replace}~" "${vhost_full_path}"