Update dapostinstall.sh
This commit is contained in:
+41
-11
@@ -58,8 +58,8 @@ sed -i 's/language=en/language=pl/gI' /usr/local/directadmin/data/users/admin/us
|
||||
sed -i 's/language=en/language=pl/gI' /usr/local/directadmin/data/users/admin/user.conf
|
||||
sed -i 's/language=en/language=pl/gI' /usr/local/directadmin/data/users/admin/packages/NO_LIMIT.pkg
|
||||
systemctl restart directadmin
|
||||
;;
|
||||
break
|
||||
;;
|
||||
|
||||
"Wyjscie")
|
||||
break
|
||||
@@ -86,26 +86,21 @@ cd /usr/local/directadmin/custombuild
|
||||
./build update
|
||||
./build exim_conf
|
||||
|
||||
sleep 5
|
||||
echo "Instalacja spamassassina"
|
||||
|
||||
cd /usr/local/directadmin/custombuild
|
||||
./build set spamd spamassassin
|
||||
./build spamassassin
|
||||
sleep 5
|
||||
|
||||
echo "Dodanie SpamAssassin dla wszystkich uzytkownikow"
|
||||
|
||||
|
||||
cd $POSTINSTALL_DIR
|
||||
cp user_create_post.sh /usr/local/directadmin/scripts/custom/user_create_post.sh
|
||||
chmod 755 /usr/local/directadmin/scripts/custom/user_create_post.sh
|
||||
|
||||
|
||||
echo "Aktywacja SpamAssassina dla obecnych użytkowników"
|
||||
|
||||
cp spamon.sh /usr/local/directadmin/scripts/custom/spamon.sh
|
||||
chmod 755 /usr/local/directadmin/scripts/custom/spamon.sh
|
||||
/usr/local/directadmin/scripts/custom/spamon.sh
|
||||
cd $POSTINSTALL_DIR
|
||||
cp spam_assassin_all_users_on.sh /usr/local/directadmin/scripts/custom/
|
||||
chmod 755 /usr/local/directadmin/scripts/custom/spam_assassin_all_users_on.sh
|
||||
/usr/local/directadmin/scripts/custom/spam_assassin_all_users_on.sh
|
||||
|
||||
sleep 5
|
||||
|
||||
@@ -139,6 +134,11 @@ systemctl restart directadmin
|
||||
|
||||
sleep 5
|
||||
cd $POSTINSTALL_DIR
|
||||
|
||||
echo "Naprawa PhpMyAdmin"
|
||||
chmod 755 fix_phpmyadmin.sh
|
||||
./fix_phpmyadmin.sh
|
||||
|
||||
echo "poprawa DNS"
|
||||
sed -i '/ns1=/c\ns1=dns3.hitme.net.pl' /usr/local/directadmin/conf/directadmin.conf
|
||||
sed -i '/ns2=/c\ns2=dns4.hitme.net.pl' /usr/local/directadmin/conf/directadmin.conf
|
||||
@@ -158,6 +158,36 @@ echo "Alias /.well-known/autoconfig /var/www/html/.well-known/autoconfig" >> /us
|
||||
echo "Alias /poczta /var/www/html/roundcube" >> /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-alias.conf
|
||||
/usr/local/directadmin/custombuild/build rewrite_confs
|
||||
|
||||
echo "Instalacja Imagick i WebP"
|
||||
yum install libwebp-devel libjpeg-devel libpng-devel libwebp-tools giflib libvpx libvpx-devel libtiff-devel libgif-devel libXpm-devel libpng-devel ImageMagick-devel
|
||||
/usr/local/directadmin/custombuild/build set imagick yes
|
||||
/usr/local/directadmin/custombuild/build imagick
|
||||
|
||||
echo "Instalacja IMAP"
|
||||
sed -i 's/imap=no/imap=yes/gI' /usr/local/directadmin/custombuild/php_extensions.conf
|
||||
/usr/local/directadmin/custombuild/build imap
|
||||
|
||||
echo "Instalacja Memcache i redis"
|
||||
yum -y install memcached libmemcached
|
||||
systenctl enable memcached
|
||||
systemctl restart memcached
|
||||
yum -y install redis redis-devel
|
||||
|
||||
echo "Instalacja rozszerzen PECL od poralixa
|
||||
cd /usr/local/directadmin/scripts/custom
|
||||
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/php/php-extension.sh -O php-extension.sh
|
||||
chmod 750 php-extension.sh
|
||||
./php-extension.sh install memcached
|
||||
./php-extension.sh install redis
|
||||
cd $DAPOSTINSTALL_DIR
|
||||
|
||||
cd /usr/local/directadmin/custombuild
|
||||
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
|
||||
cd $DAPOSTINSTALL_DIR
|
||||
|
||||
|
||||
echo "Certyfikat SSL dla DirectAdmina"
|
||||
cd /usr/local/directadmin/scripts
|
||||
./letsencrypt.sh request_single `hostname` 4096
|
||||
|
||||
Reference in New Issue
Block a user