danb35 / freenas-iocage-caddy

Script to install Caddy V2 in a FreeNAS jail
GNU General Public License v3.0
23 stars 2 forks source link

RELEASE can get set to impossible values #1

Closed nigelm closed 3 years ago

nigelm commented 3 years ago

My FreeNAS box with current updates reports its version by freebsd-version as 12.2-RC3

This means that the line:-

RELEASE=$(freebsd-version | sed "s/STABLE/RELEASE/g" | sed "s/-p[0-9]*//")

sets RELEASE to 12.2-RC3 - and there appears to be no iocage jail to match that.

Maybe RELEASE should sanitize a bit more or at least allow an environment variable or switch override.