mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 18:54:55 +00:00
Fix commit to be a partial admin-focused commit
Issue #4197 -- Commit currently commits all pending changes to the firewall, which could be very, very bad. This changes to commit to a partial commit of just the admin user acme.sh is using, which should be a dedicated admin user and not shared by anything else.
This commit is contained in:
parent
1b59b0b739
commit
71de890431
@ -71,8 +71,8 @@ deployer() {
|
||||
|
||||
if [ "$type" = 'commit' ]; then
|
||||
export _H1="Content-Type: application/x-www-form-urlencoded"
|
||||
cmd=$(printf "%s" "<commit><partial><$_panos_user></$_panos_user></partial></commit>" | _url_encode)
|
||||
content="type=commit&key=$_panos_key&cmd=$cmd"
|
||||
cmd=$(printf "%s" "<commit><partial><admin><member>$_panos_user</member></admin></partial></commit>" | _url_encode)
|
||||
content="type=commit&action=partial&key=$_panos_key&cmd=$cmd"
|
||||
fi
|
||||
response=$(_post "$content" "$panos_url" "" "POST")
|
||||
parse_response "$response" "$type"
|
||||
|
Loading…
x
Reference in New Issue
Block a user