dnk: store vpn keys with user_service_id
This commit is contained in:
parent
01300c5805
commit
2ae8cf9a50
@ -48,7 +48,7 @@ case $EVENT in
|
|||||||
$CURL -s --fail-with-body -XPUT \
|
$CURL -s --fail-with-body -XPUT \
|
||||||
-H "session-id: $SESSION_ID" \
|
-H "session-id: $SESSION_ID" \
|
||||||
-H "Content-Type: text/plain" \
|
-H "Content-Type: text/plain" \
|
||||||
{{ config.api.url }}/shm/v1/storage/manage/vpn \
|
{{ config.api.url }}/shm/v1/storage/manage/vpn{{ us.id }} \
|
||||||
--data-binary "$USER_CFG"
|
--data-binary "$USER_CFG"
|
||||||
echo "done"
|
echo "done"
|
||||||
;;
|
;;
|
||||||
@ -64,7 +64,7 @@ case $EVENT in
|
|||||||
$WG_MANAGER -u "{{ us.id }}" -d
|
$WG_MANAGER -u "{{ us.id }}" -d
|
||||||
$CURL -s --fail-with-body -XDELETE \
|
$CURL -s --fail-with-body -XDELETE \
|
||||||
-H "session-id: $SESSION_ID" \
|
-H "session-id: $SESSION_ID" \
|
||||||
{{ config.api.url }}/shm/v1/storage/manage/vpn
|
{{ config.api.url }}/shm/v1/storage/manage/vpn{{ us.id }}
|
||||||
echo "done"
|
echo "done"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user