From 38db75dc43a0183f2ea1cd61951061aa40a0b29c Mon Sep 17 00:00:00 2001 From: Tom Noogen Date: Thu, 22 Mar 2018 17:33:43 -0500 Subject: [PATCH] add upgrade doc --- README.md | 8 ++++++++ docker-compose.yml | 8 ++++++++ rootfs/sysprepz/admin/bin/vesta-update.sh | 6 ++++++ 3 files changed, 22 insertions(+) diff --git a/README.md b/README.md index f9f4095..685c893 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,14 @@ If you use this Docker for hosting and allow your user to login, I also recommen Enjoy!!! ## Release Notes +1.3.1 - upgrade documentation. + +``` +- If you're using postgresql 9.5 then you want to backup all your users and then restore them on the new docker using vesta panel. + +- If you're not using postgresql, then ssh as admin and run 'sudo bash /bin/vesta-update.shell' to upgrade everything. As always, it is best to backup all your users. +``` + 1.3.0 - **Breaking Changes**: update to postgresql-9.6, add pgaudit and postgis geo extension. This is the most popular postgresql version that also work best with postgis. Make sure you have all your postgresql databases backuped before updating to this version. 1.2.1 - Update to be more secure and compliance. A bunch of security issues discovered during the holidays were patched by various vendors including cpu (meltdown & spectre) and .net core issues: diff --git a/docker-compose.yml b/docker-compose.yml index fe8b348..df36bfa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,14 @@ services: - "80:80" - "443:443" - "8083:8083" + privileged: true + ulimits: + nproc: 65535 + nofile: + soft: 20000 + hard: 40000 + sysctls: + net.core.somaxconn: '511' labels: - "Vesta Control Panel" restart: unless-stopped diff --git a/rootfs/sysprepz/admin/bin/vesta-update.sh b/rootfs/sysprepz/admin/bin/vesta-update.sh index d37c2e3..c3406a8 100755 --- a/rootfs/sysprepz/admin/bin/vesta-update.sh +++ b/rootfs/sysprepz/admin/bin/vesta-update.sh @@ -10,3 +10,9 @@ rsync --update -raz --progress --exclude 'conf.d' /vesta-start/etc/nginx /etc/ng # update php conf rm -rf /vesta/etc/php/* rsync --update -raz --progress /vesta-start/etc/php/ /vesta/etc/php/ + +if [ ! -d "/var/lib/postgresql/9.6/" ]; then + echo "[i] add postgresql 9.6" + rsync --update -raz /vesta-start/var/lib/postgresql/9.6/* /vesta/var/lib/postgresql/9.6 + rsync --update -raz /vesta-start/etc/postgresql/9.6/* /vesta/etc/postgresql/9.6 +fi