Skip to content

Commit 095d70b

Browse files
Bumped port version to v1.1.7, fixed update path for pfSense 2.5 on pfsense-api CLI
1 parent f188f36 commit 095d70b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pfSense-pkg-API/files/usr/local/share/pfSense-pkg-API/manage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ function restore() {
8181
}
8282

8383
function update() {
84+
$pf_version = substr(file_get_contents("/etc/version"), 0, 3);
8485
echo shell_exec("/usr/sbin/pkg delete -y pfSense-pkg-API");
85-
echo shell_exec("/usr/sbin/pkg add https://github.com/jaredhendrickson13/pfsense-api/releases/latest/download/pfSense-2.4-pkg-API.txz");
86+
echo shell_exec("/usr/sbin/pkg add https://github.com/jaredhendrickson13/pfsense-api/releases/latest/download/pfSense-".$pf_version."-pkg-API.txz");
8687
echo shell_exec("/etc/rc.restart_webgui");
8788
}
8889

tools/templates/Makefile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
PORTNAME=pfSense-pkg-API
44
PORTVERSION=1.1
5-
PORTREVISION=6
5+
PORTREVISION=7
66
CATEGORIES=sysutils
77
MASTER_SITES=# empty
88
DISTFILES=# empty

0 commit comments

Comments
 (0)