Update dapostinstall.sh

This commit is contained in:
Marek Miklewicz
2022-05-07 23:26:12 +02:00
committed by GitHub
parent 4c98e24b38
commit 82378cfb1b
+5 -4
View File
@@ -94,14 +94,14 @@ sleep 5
echo "Dodanie SpamAssassin dla wszystkich uzytkownikow" echo "Dodanie SpamAssassin dla wszystkich uzytkownikow"
cd $POSTINSTALL_DIR cd $DAPOSTINSTALL_DIR
cp user_create_post.sh /usr/local/directadmin/scripts/custom/user_create_post.sh 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 chmod 755 /usr/local/directadmin/scripts/custom/user_create_post.sh
echo "Aktywacja SpamAssassina dla obecnych użytkowników" echo "Aktywacja SpamAssassina dla obecnych użytkowników"
cd $POSTINSTALL_DIR cd $DAPOSTINSTALL_DIR
cp spam_assassin_all_users_on.sh /usr/local/directadmin/scripts/custom/ 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 chmod 755 /usr/local/directadmin/scripts/custom/spam_assassin_all_users_on.sh
/usr/local/directadmin/scripts/custom/spam_assassin_all_users_on.sh /usr/local/directadmin/scripts/custom/spam_assassin_all_users_on.sh
@@ -137,7 +137,7 @@ cd /usr/local/directadmin/custombuild
systemctl restart directadmin systemctl restart directadmin
sleep 5 sleep 5
cd $POSTINSTALL_DIR cd $DAPOSTINSTALL_DIR
echo "Naprawa PhpMyAdmin" echo "Naprawa PhpMyAdmin"
chmod 755 fix_phpmyadmin.sh chmod 755 fix_phpmyadmin.sh
@@ -189,7 +189,6 @@ cd /usr/local/directadmin/custombuild
touch custom/php_disable_functions 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 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 ./build secure_php
cd $DAPOSTINSTALL_DIR
echo "Certyfikat SSL dla DirectAdmina" echo "Certyfikat SSL dla DirectAdmina"
@@ -206,3 +205,5 @@ sh hitmemodsec.sh
rm -f hitmemodsec.sh rm -f hitmemodsec.sh
daupdate antybots daupdate antybots
daupdate bbmysql daupdate bbmysql
cd $DAPOSTINSTALL_DIR