From 2ae8cf9a50453e3667014c87d1b5c4c47d3211d2 Mon Sep 17 00:00:00 2001 From: Daniil Firsov Date: Tue, 8 Nov 2022 17:55:29 +0300 Subject: [PATCH] dnk: store vpn keys with user_service_id --- shm_actions_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shm_actions_script.sh b/shm_actions_script.sh index bf22ab5..de73931 100755 --- a/shm_actions_script.sh +++ b/shm_actions_script.sh @@ -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" ;; *)