SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
net/unifi/6.0/patches/patch-unifi_sh_api
Normal file
18
net/unifi/6.0/patches/patch-unifi_sh_api
Normal file
|
@ -0,0 +1,18 @@
|
|||
Index: unifi_sh_api
|
||||
--- unifi_sh_api.orig
|
||||
+++ unifi_sh_api
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/sh
|
||||
+#!/bin/ksh
|
||||
|
||||
#username=ubnt
|
||||
#password=ubnt
|
||||
@@ -53,7 +53,7 @@ unifi_api() {
|
||||
fi
|
||||
uri=$1
|
||||
shift
|
||||
- [ "${uri:0:1}" != "/" ] && uri="/$uri"
|
||||
+ [ $(echo $uri | cut -c1) != "/" ] && uri="/$uri"
|
||||
json="$@"
|
||||
[ "$json" = "" ] && json="{}"
|
||||
${curl_cmd} --data "$json" $baseurl/api/s/$site$uri
|
Loading…
Add table
Add a link
Reference in a new issue