Print NetBox version when running upgrade.sh #8955

Closed
opened 2025-12-29 20:43:18 +01:00 by adam · 2 comments
Owner

Originally created by @markkuleinio on GitHub (Dec 13, 2023).

Originally assigned to: @markkuleinio on GitHub.

NetBox version

v3.7-beta1

Feature type

New functionality

Proposed functionality

When running upgrade.sh it would be beneficial to see what is the actual NetBox version that is being prepared.

Something like

echo "NetBox version is $(grep ^VERSION netbox/netbox/settings.py | cut -d\' -f2)"
NetBox version is 3.7-beta1

would maybe be enough somewhere in the beginning of upgrade.sh.

Use case

Sometimes there is confusion when symlinking or pulling the versions here and there and running upgrade.sh, what is the actual codebase that is being activated.

Database changes

None

External dependencies

None

Originally created by @markkuleinio on GitHub (Dec 13, 2023). Originally assigned to: @markkuleinio on GitHub. ### NetBox version v3.7-beta1 ### Feature type New functionality ### Proposed functionality When running upgrade.sh it would be beneficial to see what is the actual NetBox version that is being prepared. Something like ``` echo "NetBox version is $(grep ^VERSION netbox/netbox/settings.py | cut -d\' -f2)" NetBox version is 3.7-beta1 ``` would maybe be enough somewhere in the beginning of upgrade.sh. ### Use case Sometimes there is confusion when symlinking or pulling the versions here and there and running upgrade.sh, what is the actual codebase that is being activated. ### Database changes None ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 20:43:18 +01:00
adam closed this issue 2025-12-29 20:43:18 +01:00
Author
Owner

@DanSheps commented on GitHub (Dec 13, 2023):

I would add, it might be wise too break until there is input after that (unless running non-interactively).

@DanSheps commented on GitHub (Dec 13, 2023): I would add, it might be wise too break until there is input after that (unless running non-interactively).
Author
Owner

@markkuleinio commented on GitHub (Dec 16, 2023):

I can submit the PR. I can add the pause in interactive mode (let's discuss in the PR if something needs adjusting).

@markkuleinio commented on GitHub (Dec 16, 2023): I can submit the PR. I can add the pause in interactive mode (let's discuss in the PR if something needs adjusting).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8955