dnk: store vpn keys with user_service_id

This commit is contained in:
Daniil Firsov 2022-11-08 17:55:29 +03:00
parent 01300c5805
commit 2ae8cf9a50

View File

@ -48,7 +48,7 @@ case $EVENT in
$CURL -s --fail-with-body -XPUT \
-H "session-id: $SESSION_ID" \
-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"
echo "done"
;;
@ -64,7 +64,7 @@ case $EVENT in
$WG_MANAGER -u "{{ us.id }}" -d
$CURL -s --fail-with-body -XDELETE \
-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"
;;
*)