Compare commits

...

2 Commits

Author SHA1 Message Date
matze dfaeab2cf5 __netbox: add manpage warning for "big version jumps"
As getting myself into trouble while upgrading from 2.10 to 3.1 cause of
an migration break which allowing upgrades only from 2.11, I've add this
warning or notice to be a bit more aware of this.
2022-03-07 15:36:13 +01:00
matze 8aee2ec76d __netbox: pass handling of requirements.txt to pip3
Previous handling passed a list of pip packages from the
requirements.txt via xargs to the pip install directly.

This is error-prone, as shown with the major 3 Netbox release. This type
breaks cause of comments inside of it. This commit fixes it, while
keeping the compatibility to install gnuicorn separate.
2022-03-07 15:27:26 +01:00
2 changed files with 9 additions and 1 deletions

View File

@ -51,7 +51,9 @@ fi
# Install python dependencies.
# avoid gunicorn, because it will be done in an other type
grep -v "^gunicorn==" "\$tmpdir/$src/requirements.txt" \
| xargs /opt/netbox/venv/bin/pip3 install -q
> "\$tmpdir/$src/requirements.txt.new"
/opt/netbox/venv/bin/pip3 install -q -r "\$tmpdir/$src/requirements.txt.new"
EOF
if [ -f "$__object/parameter/ldap-server" ]; then

View File

@ -31,6 +31,12 @@ version
on GitHub at the NetBox project page under
"`Releases <https://github.com/netbox-community/netbox/releases>`_".
Too big version jumps can break the NetBox migration path. It's good
practise to don't skip major versions and common that you must upgrade to
the latest minor inside the current major version till you can upgrade to
the next major version. Diffrent version steps must be done manually as
this type only upgrades to the given version directly.
database
PostgreSQL database name.