File tree Expand file tree Collapse file tree
pfSense-pkg-API/files/usr/local/share/pfSense-pkg-API Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,8 +81,9 @@ function restore() {
8181}
8282
8383function 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
Original file line number Diff line number Diff line change 22
33PORTNAME=pfSense-pkg-API
44PORTVERSION=1.1
5- PORTREVISION=6
5+ PORTREVISION=7
66CATEGORIES=sysutils
77MASTER_SITES=# empty
88DISTFILES=# empty
You can’t perform that action at this time.
0 commit comments