#ao-oca-dev2 How to set up a clone of an existing OCA 9 server. ############### # First, set up database server # Install Debian Stretch # Install postgres 9.6 from Debian repo # Add fast disk for /var/lib/postgresql apt-get install pbzip2 apt-get install \ postgresql-all # XXX set up postgres config. # XXX is superuser. OCA 9 import needs it, so don't mix with other DB. sudo -u postgres createuser aooncedev2 -U postgres --createdb --superuser --pwprompt # Create database: sudo -u postgres createdb --owner aooncedev2 aooncedev2 # Set up Postgres IP: auto ens18 ens19 iface ens19 inet static address 10.53.1.81/24 # XXX edit /etc/postgresql/9.6/main/postgresql.conf and change to be # like this (note single quotes ') # ao-pg1 listen_addresses = '127.0.0.1,10.53.1.81' # what IP address(es) to listen on; # Set up access permissions file as root: cat > /etc/postgresql/9.6/main/pg_hba.conf < Email --> Incoming Mail Servers # Technical --> Email --> Outgoing Mail Servers # Technical --> Automation --> Schedule Actions # Disable: Email Queue Manager, Cycle Count Planner Computation, # Marketing Campaign: Campaign workitems processing, # Run Event Reminder, # DDMRP Buffer ADU calculation # Reordering Rule DDMRP calculation ############################################################################## ############################################################################## # pg2, upgrade to Postgres 10 apt remove postgresql-9.6 postgresql-client-9.6 postgresql-client-common postgresql-common postgresql-server-dev-9.6 postgresql-server-dev-all # rm -rf /var/lib/postgresql/9.6/ echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgdg.list wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - apt update apt dist-upgrade apt autoremove apt install postgresql-10 # XXX edit /etc/postgresql/10/main/postgresql.conf and change to be # like this (note single quotes ') # ao-pg2 listen_addresses = '127.0.0.1,10.53.1.82' # what IP address(es) to listen on; cat > /etc/postgresql/10/main/pg_hba.conf <