diff --git a/config/nocloud/user-data b/config/nocloud/user-data index 4ee58e2..ec2c0d5 100644 --- a/config/nocloud/user-data +++ b/config/nocloud/user-data @@ -186,26 +186,26 @@ autoinstall: # --- install postgres --- - | set -x - curl -SLo /tmp/pgpro-repo-add.sh https://repo.postgrespro.ru/pg1c-14/keys/pgpro-repo-add.sh + curl -SLo /tmp/pgpro-repo-add.sh https://repo.postgrespro.ru/1c-15/keys/pgpro-repo-add.sh sh /tmp/pgpro-repo-add.sh rm -f /tmp/pgpro-repo-add.sh - apt-get install -y postgrespro-1c-14-contrib + apt-get install -y postgrespro-1c-15-contrib # --- postgres init --- - | set -x echo postgres > /tmp/pgpswd - /opt/pgpro/1c-14/bin/pg-setup initdb --tune=1c -k -E UTF8 -g --locale ru_RU.UTF-8 -T russian --pwfile=/tmp/pgpswd + /opt/pgpro/1c-15/bin/pg-setup initdb --tune=1c -k -E UTF8 -g --locale ru_RU.UTF-8 -T russian --pwfile=/tmp/pgpswd rm -f /tmp/pgpswd - sed -i 's%\=\s0MB%\=\ 1GB%g' /var/lib/pgpro/1c-14/data/postgresql.conf - echo >> /var/lib/pgpro/1c-14/data/postgresql.conf - echo \#--- >> /var/lib/pgpro/1c-14/data/postgresql.conf - echo row_security=off >> /var/lib/pgpro/1c-14/data/postgresql.conf - echo max_wal_senders=0 >> /var/lib/pgpro/1c-14/data/postgresql.conf - echo wal_level=minimal >> /var/lib/pgpro/1c-14/data/postgresql.conf - /opt/pgpro/1c-14/bin/pg-setup service enable - /opt/pgpro/1c-14/bin/pg-setup service start - apt-get install -y postgrespro-1c-14 + sed -i 's%\=\s0MB%\=\ 1GB%g' /var/lib/pgpro/1c-15/data/postgresql.conf + echo >> /var/lib/pgpro/1c-15/data/postgresql.conf + echo \#--- >> /var/lib/pgpro/1c-15/data/postgresql.conf + echo row_security=off >> /var/lib/pgpro/1c-15/data/postgresql.conf + echo max_wal_senders=0 >> /var/lib/pgpro/1c-15/data/postgresql.conf + echo wal_level=minimal >> /var/lib/pgpro/1c-15/data/postgresql.conf + /opt/pgpro/1c-15/bin/pg-setup service enable + /opt/pgpro/1c-15/bin/pg-setup service start + apt-get install -y postgrespro-1c-15 # --- install 1c --- - |