mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-18 04:11:46 +00:00
Merge pull request #383 from Neilpang/dev
fix 'sed -i' permissions on PVE
This commit is contained in:
commit
1e2d559859
3
acme.sh
3
acme.sh
@ -1324,7 +1324,8 @@ _clear_conf() {
|
|||||||
_c_c_f="$1"
|
_c_c_f="$1"
|
||||||
_sdkey="$2"
|
_sdkey="$2"
|
||||||
if [ "$_c_c_f" ]; then
|
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
|
else
|
||||||
_err "config file is empty, can not clear"
|
_err "config file is empty, can not clear"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user