Обновить 2-install.sh
This commit is contained in:
parent
cc7bdf0b21
commit
e0221a4158
13
2-install.sh
13
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user