diff --git a/source/resources/apps/oca/oca9-dev b/source/resources/apps/oca/oca9-dev new file mode 100644 index 0000000..fea3119 --- /dev/null +++ b/source/resources/apps/oca/oca9-dev @@ -0,0 +1,159 @@ +#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 \ + 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 <