From e0221a4158677ae80313e76d1c7a4db7b5576933 Mon Sep 17 00:00:00 2001 From: kosenka Date: Fri, 5 Sep 2025 21:27:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=202-install.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2-install.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/2-install.sh b/2-install.sh index df6b052..9b76b77 100644 --- a/2-install.sh +++ b/2-install.sh @@ -214,7 +214,7 @@ install_postgresql() { echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg apt-get update - apt-get -qq install -y postgresql-16 postgresql-contrib-16 + apt-get -qq install -y postgresql-16 postgresql-contrib-16 postgresql-server-dev-16 #rm -rf /var/lib/pgsql #mkdir -p /var/lib/pgsql @@ -256,7 +256,7 @@ install_php_fpm() { apt-get -qq update apt-get -qq install -y php$FPM_V-fpm php$FPM_V-cli php$FPM_V-common php$FPM_V-xsl php$FPM_V-sockets - apt-get -qq install -y php-memcached php$FPM_V-odbc php-pgsql + apt-get -qq install -y php$FPM_V-memcached php$FPM_V-odbc apt-get -qq install -y php$FPM_V-readline php$FPM_V-pdo php$FPM_V-memcached php$FPM_V-smbclient apt-get -qq install -y php$FPM_V-imap php$FPM_V-imagick php$FPM_V-igbinary php$FPM_V-exif php$FPM_V-mbstring php$FPM_V-pgsql apt-get -qq install -y php$FPM_V-curl php$FPM_V-zip php$FPM_V-gd php$FPM_V-opcache php$FPM_V-intl php$FPM_V-xml php$FPM_V-xmlrpc @@ -302,6 +302,13 @@ install_freetds() { echo "[ * ] Установка FreeTDS..." apt-get -qq install -y freetds-dev freetds-bin freetds-common tdsodbc odbcinst + export TDS_FDW_VERSION="2.0.4" + wget https://github.com/tds-fdw/tds_fdw/archive/v${TDS_FDW_VERSION}.tar.gz + tar -xvzf v${TDS_FDW_VERSION}.tar.gz + cd tds_fdw-${TDS_FDW_VERSION}/ + make USE_PGXS=1 + make USE_PGXS=1 install + systemctl restart postgresql # sed -i -e 's/tds version = auto/tds version = 7.3/g' /etc/freetds/freetds.conf echo "[FreeTDS] @@ -326,7 +333,7 @@ main() { apt-get -qq install -y memcached cifs-utils pwgen wget curl gnupg lsb-release pwgen git htop ca-certificates apt-get -qq install -y apt-utils aptitude squashfs-tools tzdata fdisk gdisk mc net-tools locales iproute2 smbclient apt-get -qq install -y libreoffice-core --no-install-recommends libreoffice-writer default-jre libreoffice-java-common - apt-get -qq install -y gnupg2 apt-transport-https software-properties-common + apt-get -qq install -y lsof gnupg2 apt-transport-https software-properties-common gnupg gcc make systemctl enable memcached systemctl start memcached