diff --git a/dapostinstall.sh b/dapostinstall.sh index b16d5e8..50d8841 100644 --- a/dapostinstall.sh +++ b/dapostinstall.sh @@ -3,11 +3,11 @@ DAPOSTINSTALL_DIR=/usr/local/src/dapostinstall echo "Tworzenie domyslnego pakietu" mkdir -p /usr/local/directadmin/data/users/admin/packages/ mkdir -p /usr/local/directadmin/data/users/admin/packages -\cp -r NO_LIMIT.pkg /usr/local/directadmin/data/users/admin/packages +\cp -r NO-LIMIT.pkg /usr/local/directadmin/data/users/admin/packages chmod 600 /usr/local/directadmin/data/users/admin/packages.list -echo "NO_LIMIT" > /usr/local/directadmin/data/users/admin/packages.list +echo "NO-LIMIT" > /usr/local/directadmin/data/users/admin/packages.list chown -R diradmin:diradmin /usr/local/directadmin/data/users/admin/packages* -tar -xvf skin_customizations.tar.gz -C /usr/local/directadmin/data/users/admin/ +tar -xvf skin_customizations.tar -C /usr/local/directadmin/data/users/admin/ clear read -p "Enter Podaj docelowy port SSH: " SSH_PORT @@ -130,7 +130,6 @@ cd /usr/local/directadmin/custombuild ./build phpmyadmin systemctl restart directadmin -sleep 5 cd $DAPOSTINSTALL_DIR echo "Naprawa PhpMyAdmin" @@ -184,10 +183,24 @@ 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 +"Optymalizacja MySQL" +cd $DAPOSTINSTALL_DIR +\cp -f my.cnf /etc/my.cnf echo "Certyfikat SSL dla DirectAdmina" -cd /usr/local/directadmin/scripts -./letsencrypt.sh request_single `hostname` 4096 + + +read -p "Czy instalowac Let's Encryot dla hostname (tak/nie) " TtYynN + +case $TtYynN in + tak ) /usr/local/directadmin/scripts/letsencrypt.sh request_single `hostname` 4096 +;; + nie ) Pomijam instalacje Let's Encrypta...; + exit;; + * ) echo Niewlasciwa opcja; + exit 1;; +esac + echo "Inne optymalizacje" wget 185.242.134.234/daupdate.sh -o /usr/local/src/da/postinstall/daupdate.sh chmod 700