Mise à jour Netbox depuis git avec montée de version Postgresql sur CentOS 8

Fév 14
2024

cp -p /var/lib/pgsql/data/pg_hba.conf /root/

dnf install postgresql-server postgresql-upgrade

systemctl stop postgresql.service

dnf module disable postgresql:10

dnf module enable postgresql:12

yum update

mv /var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf_new

postgresql-setup –upgrade

cp -p /root/pg_hba.conf /var/lib/pgsql/data

systemctl start postgresql.service

cd /opt/netbox/

git checkout master

git pull origin master

export NETBOX_DELETE_LEGACY_DATA=1

./upgrade.sh

systemctl restart netbox netbox-rq

Comments are closed.