diff --git a/install.sh b/install.sh index 8b8f42e..950167e 100755 --- a/install.sh +++ b/install.sh @@ -56,22 +56,6 @@ mysql -e "CREATE USER 'vmail'@'localhost' IDENTIFIED BY '$VMAILPASS';" mysql -e "GRANT ALL PRIVILEGES ON vmail.* TO 'vmail'@'localhost';" mysqladmin flush-privileges -# install apache -if [ ! -d "/etc/apache2/" ]; then - apt -y install apache2 -fi -cp etc/apache2/conf-available/vmail_macro.conf /etc/apache2/conf-available/vmail_macro.conf -chmod 644 /etc/apache2/conf-available/vmail_macro.conf -a2enmod macro -a2enconf vmail_macro - -# install php -apt -y install php-fpm php-cli php-gd php-imagick php-imap php-intl php-mysql php-pspell php-zip -a2enconf php7.4-fpm -sed -i "s|post_max_size = 8M|post_max_size = 256M|g" /etc/php/7.4/fpm/php.ini -sed -i "s|upload_max_filesize = 2M|upload_max_filesize = 256M|g" /etc/php/7.4/fpm/php.ini -sed -i "s|pm = dynamic|pm = ondemand|g" /etc/php/7.4/fpm/pool.d/www.conf - # install mail server software apt -y install exim4-daemon-heavy spf-tools-perl spamassassin libclass-dbi-mysql-perl dovecot-core dovecot-imapd dovecot-mysql dovecot-pop3d dovecot-lmtpd @@ -137,19 +121,17 @@ chown dovecot:mail /usr/libexec/vmail-quota-warning.sh systemctl enable spamassassin systemctl restart spamassassin systemctl restart exim4 -systemctl restart php7.4-fpm -systemctl restart apache2 systemctl restart dovecot chmod 755 bin/* cp bin/* /usr/local/bin/ # download and install roundcubemail -cd /usr/local/src/ -wget --continue --quiet https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz -tar zxf roundcubemail-1.4.11-complete.tar.gz -cd roundcubemail-1.4.11 -pwd +# cd /usr/local/src/ +# wget --continue --quiet https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz +# tar zxf roundcubemail-1.4.11-complete.tar.gz +# cd roundcubemail-1.4.11 +# pwd # apache_document_root=`apachectl -t -D DUMP_RUN_CFG|grep DocumentRoot|cut -d \" -f 2` # config # change product_name as desired