From 20ea85918322a19953fd8e4cff73b4b7d0337e1d Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 14 Nov 2016 17:47:22 +0800 Subject: [PATCH] fix 'sed -i' permissions on PVE --- acme.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 2ecf1225..e5dabb3a 100755 --- a/acme.sh +++ b/acme.sh @@ -1324,7 +1324,8 @@ _clear_conf() { _c_c_f="$1" _sdkey="$2" if [ "$_c_c_f" ]; then - _sed_i "s/^$_sdkey.*$//" "$_c_c_f" + _conf_data="$(cat "$_c_c_f")" + echo "$_conf_data" | sed "s/^$_sdkey *=.*$//" > "$_c_c_f" else _err "config file is empty, can not clear" fi