ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

pfsense 2.5.x official repo? #74

Closed somedevreally closed 3 years ago

somedevreally commented 3 years ago

Hello,

will this pkg be part of the pfsense 2.5 repo? any timeline?

also when trying to install manually using this script

set fauxapi_base_package_url='https://raw.githubusercontent.com/ndejong/pfsense_fauxapi_packages/master'
set fauxapi_latest=`fetch -qo - ${fauxapi_base_package_url}/LATEST`
fetch ${fauxapi_base_package_url}/${fauxapi_latest}
pkg-static install ${fauxapi_latest}

i get this error

fetch: /LATEST: No such file or directory
fetch.out                                       0% of 1024  B    0  Bps    00s
fetch: /: Is a directory
Usage: pkg install [-AfInFMqRUy] [-r reponame] [-Cgix] <pkg-name> ...

For more information see 'pkg help install'.

thanks

ndejong commented 3 years ago

Hi -

I'd been unable to reproduce this problem until by chance today I stumbled into your situation by chance.

The line below sometimes seems to timeout when performing a request to githubusercontent.com that is responsible for obtaining the LATEST information that points to the latest package file to download and install.

fauxapi_latest=`fetch -qo - ${fauxapi_base_package_url}/LATEST`

If this happens you'll want to check your connectivity first but if it all seems okay then you could just download the latest package file from https://github.com/ndejong/pfsense_fauxapi_packages and then manually install -

pkg-static install <package-filename>

Closing this for now - please feel free to re-open if you have more information etc.

dunderrrrrr commented 3 years ago

No official repo news?

bill-mcgonigle commented 1 year ago

on:

GNU bash, version 5.1.16(0)-release-(armv7-portbld-freebsd12.3)
12.3-STABLE

I need to add export to the two set lines or get the same error message.