parent
fa2a0e1d3d
commit
07c680ffc9
1 changed files with 47 additions and 0 deletions
47
UpgradeTo20.04.md
Normal file
47
UpgradeTo20.04.md
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
## Upgrade to Ubuntu 20.04
|
||||||
|
|
||||||
|
notes on upgrading unbuntu from 18.04 to 20.04 for pan.do/ra
|
||||||
|
|
||||||
|
apt-get install ubuntu-release-upgrader-core
|
||||||
|
do-release-upgrade
|
||||||
|
|
||||||
|
Questions:
|
||||||
|
- Do you want to upgrade glibc now? YES
|
||||||
|
- Restart services during package upgrades without asking? YES
|
||||||
|
- Keep /etc/nginx/nginx.conf and /etc/nginx/sites-available/default
|
||||||
|
- install the package maintainer's version /etc/postgresql-common/createcluster.conf
|
||||||
|
|
||||||
|
restart
|
||||||
|
|
||||||
|
Post Upgrade:
|
||||||
|
|
||||||
|
Stop all pan.do/ra processes (run as root):
|
||||||
|
|
||||||
|
/srv/pandora/ctl stop
|
||||||
|
|
||||||
|
Enable pan.do/ra PPA again (run as root):
|
||||||
|
|
||||||
|
sed -i "s/^# deb/deb/g" /etc/apt/sources.list.d/j*.list
|
||||||
|
apt update; apt upgrade; apt autoremove; apt clean
|
||||||
|
|
||||||
|
New version of Postgres requires database migration (run as root):
|
||||||
|
|
||||||
|
apt install postgresql-12 postgresql-contrib-12 postgresql-client-12
|
||||||
|
|
||||||
|
pg_dropcluster 12 main --stop
|
||||||
|
pg_upgradecluster 10 main
|
||||||
|
pg_dropcluster 10 main
|
||||||
|
|
||||||
|
apt remove postgresql-10 postgresql-contrib-10 postgresql-client-10
|
||||||
|
systemctl restart postgresql
|
||||||
|
|
||||||
|
|
||||||
|
Upgrade virtualenv (run this as "pandora" user):
|
||||||
|
|
||||||
|
cd /srv/pandora
|
||||||
|
rm -r bin lib share
|
||||||
|
./ctl init
|
||||||
|
|
||||||
|
Start pan.do/ra again (run as root):
|
||||||
|
|
||||||
|
/srv/pandora/ctl start
|
||||||
Loading…
Add table
Add a link
Reference in a new issue