# launch:
DB_CONTAINER=db-odoo-15 ODOO_CONTAINER=odoo-15 ODOO_BRANCH=15.0 docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name $DB_CONTAINER postgres:12.0
# | |
su | |
# ivann + general | |
mkdir /root/.ssh | |
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> /root/.ssh/authorized_keys | |
echo -ne " yelizariev@it-projects.info\n" >> /root/.ssh/authorized_keys | |
sed -i 's/PermitRootLogin no/PermitRootLogin without-password # changed by Ivan Yelizariev from value "no"/' /etc/ssh/sshd_config |
# Author: Ryan Cole | |
# Website: https://ryanc.me | |
# GitHub: https://github.com/MGinshe | |
# Usage: | |
# Place this file in /etc/nginx/sites-enabled/ | |
# Make sure you edit the DOMAIN_HERE and SSL_CERTIFICATE, and DB_FILTER sections | |
# | |
# Note: This config file is designed to be used with the Odoo dbfilter_from_header module | |
# https://apps.openerp.com/apps/modules/9.0/dbfilter_from_header/ |
# Open docker terminal | |
docker exec -i -u root -t $DB_CONTAINER /bin/bash | |
# Launch psql as POSTGRES_USER, e.g. odoo | |
psql -U odoo | |
# See existing DBs: | |
\l | |
# Quit from psql | |
\q | |
# Quit from docker | |
exit |
# Install putty-tools: | |
sudo apt-get install putty-tools | |
# Convert your .ppk file to .pem: | |
puttygen yourkey.ppk -O private-openssh -o yourkey.pem | |
# Set the proper permission to use the .pem file: |
You can check here for getting the latest version. Change the wget url to download newer versions.
[options] | |
# | |
# WARNING: | |
# If you use the Odoo Database utility to change the master password be aware | |
# that the formatting of this file WILL be LOST! A copy of this file named | |
# /etc/odoo/openerp-server.conf.template has been made in case this happens | |
# Note that the copy does not have any first boot changes | |
#----------------------------------------------------------------------------- | |
# Odoo Server Config File - TurnKey Linux |
Если имеется дамп базы, то для миграции нуобходимо его развернуть (версии postgres для дамп и новой базы должны совпадать):
sudo su - psql
createdb odoo7db
cd /home/diga/*PATH_TO_DUMP_DATABASE*
psql odoo7db < odoo7db.dump
psql -l
- в таблице должна отображаться новая база.Done according to https://github.com/Neilpang/acme.sh/wiki/dns-manual-mode
Warning: DNS manual mode can not renew automatically. For renewal you need to repeat steps below each time. Certificate needs to be renewed within 90 days.
Install client
git clone https://github.com/Neilpang/acme.sh.git