Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
20ea8591
Commit
20ea8591
authored
Nov 14, 2016
by
neil
Browse files
fix 'sed -i' permissions on PVE
parent
07af4247
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
20ea8591
...
@@ -1324,7 +1324,8 @@ _clear_conf() {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment