From 89fab85e8eea1dd97d74edb237ae5276a170a42d Mon Sep 17 00:00:00 2001 From: Marek Miklewicz Date: Sat, 13 Jun 2026 22:46:40 +0200 Subject: [PATCH] Enable CustomBuild targets before building --- dapostinstall.sh | 4 ++++ tests/quality_checks.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/dapostinstall.sh b/dapostinstall.sh index 24ff6dc..54fd3f5 100755 --- a/dapostinstall.sh +++ b/dapostinstall.sh @@ -389,6 +389,7 @@ cd custombuild da build update da build dovecot_conf da build exim_conf +da build set roundcube yes da build roundcube echo "OneClick PhpMyAdmin" @@ -397,12 +398,14 @@ cd $DADIR/ systemctl restart directadmin cd custombuild da build update +da build set phpmyadmin yes da build phpmyadmin echo "PhpMyAdmin tylko z poziomu DirectAdmina" cd $CBDIR da build update +da build set phpmyadmin yes da build set phpmyadmin_public no da build phpmyadmin systemctl restart directadmin @@ -456,6 +459,7 @@ cd $DAPOSTINSTALL_DIR cd $CBDIR 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 +da build set secure_php yes da build secure_php echo "Optymalizacja MySQL" diff --git a/tests/quality_checks.sh b/tests/quality_checks.sh index c19238f..a14bc39 100644 --- a/tests/quality_checks.sh +++ b/tests/quality_checks.sh @@ -156,6 +156,9 @@ assert_file_not_contains "$ROOT_DIR/dapostinstall.sh" '\./build' assert_file_not_contains "$ROOT_DIR/dapostinstall.sh" '^[[:space:]]*\$CBDIR/build' assert_file_not_contains "$ROOT_DIR/dapostinstall.sh" 'http_methods' assert_file_contains "$ROOT_DIR/dapostinstall.sh" 'da build set composer yes' +assert_file_contains "$ROOT_DIR/dapostinstall.sh" 'da build set phpmyadmin yes' +assert_file_contains "$ROOT_DIR/dapostinstall.sh" 'da build set roundcube yes' +assert_file_contains "$ROOT_DIR/dapostinstall.sh" 'da build set secure_php yes' assert_file_contains "$ROOT_DIR/dapostinstall.sh" 'da build set eximconf yes' assert_file_contains "$ROOT_DIR/dapostinstall.sh" 'da build exim_conf' assert_file_contains "$ROOT_DIR/dapostinstall.sh" 'build_php_extension "\$ioncube" "php_ioncube"'