SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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