alma 9 fixes

This commit is contained in:
Marek Miklewicz
2025-03-30 19:21:37 +02:00
parent f086d7e1fc
commit d509bdd249
2 changed files with 937 additions and 6 deletions
+13 -6
View File
@@ -1,5 +1,5 @@
#!/bin/bash
# VERSION 1.6.5-29.11.2023
# VERSION 1.6.6-30.03.2025
if [ -f "/var/log/dapostinstall.done" ]; then
echo -e "\e[31mSkrypt DApostinstall był już uruchomiony na tym serwerze - przerywam działanie.\e[0m"
exit 1
@@ -16,10 +16,10 @@ exec > >(tee -ia "$LOG_FILE") 2>&1
cd $DAPOSTINSTALL_DIR
yum -y install epel-release
yum -y install htop wget rsync nano mc ncdu borgbackup screen net-tools htop libmemcached libmemcached-devel
wget $HTLINK//daupdate.sh -O /opt/daupdate.sh
cp daupdate.sh /opt
chmod 700 /opt/daupdate.sh
cd /opt/
sh daupdate.sh update
/optdaupdate.sh update
cd $DAPOSTINSTALL_DIR
clear
cd $DAPOSTINSTALL_DIR
@@ -489,15 +489,16 @@ echo "Instalacja Imagick i WebP"
cd $DAPOSTINSTALL_DIR
dnf -y install mesa-libGL giflib freeglut
# rpm -ivh libwebp-tools-1.0.0-8.el8_7.x86_64.rpm
dnf --enablerepo=powertools -y install giflib-devel
dnf config-manager --set-enabled crb
dnf install -y giflib-devel
dnf -y install libwebp-devel libjpeg-devel libpng-devel libwebp-tools giflib libvpx libvpx-devel libtiff-devel libXpm-devel libpng-devel ImageMagick-devel
# $CBDIR/build set imagick yes
# $CBDIR/build imagick
sed -i 's/imagick=no/imagick=yes/g' /usr/local/directadmin/custombuild/php_extensions.conf
sed -i 's/imagick=no/imagick=yes/g' /usr/local/directadmin/custombuild/options.conf
da build imagick
echo "Instalacja IMAP"
sed -i 's/imap=no/imap=yes/gI' $CBDIR/php_extensions.conf
sed -i 's/imap=no/imap=yes/gI' $CBDIR/options.conf
$CBDIR/build php_imap
echo "Instalacja Memcache i redis"
@@ -518,6 +519,12 @@ touch custom/php_disable_functions
echo "exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname" > custom/php_disable_functions
./build secure_php
# Poprawka redis dla AlmaLinux 9
if grep -q "AlmaLinux release 9" /etc/redhat-release; then
ln -s /etc/redis/redis.conf /etc/redis.conf
fi
echo "Optymalizacja MySQL"
cd $DAPOSTINSTALL_DIR
\cp -f my.cnf /etc/my.cnf