Skip to content

Commit 91ef7b2

Browse files
author
Matteo Temporini
committed
Fix for Debian 9
Fix for Debian 9
1 parent 8df6207 commit 91ef7b2

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

distros/debian9/install_antivirus.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ InstallAntiVirus() {
66
echo -n "Installing Anti-Virus utilities... (This take some time. Don't abort it ...) "
77
apt-get -yqq install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl postgrey rkhunter systemd unrar-free p7zip rpm2cpio tnef > /dev/null 2>&1
88
sed -i "s/AllowSupplementaryGroups false/AllowSupplementaryGroups true/" /etc/clamav/clamd.conf
9+
echo "use strict;" > /etc/amavis/conf.d/05-node_id
10+
echo "chomp(\$myhostname = \`hostname --fqdn\`);" >> /etc/amavis/conf.d/05-node_id
11+
echo "\$myhostname = \"$CFG_HOSTNAME_FQDN\";" >> /etc/amavis/conf.d/05-node_id
12+
echo "1;" >> /etc/amavis/conf.d/05-node_id
13+
echo $CFG_HOSTNAME_FQDN > /etc/mailname
914
echo -n "Stopping Spamassassin ... "
1015
service spamassassin stop
1116
echo -e "[${green}DONE${NC}]\n"

distros/debian9/install_fix.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ InstallFix(){
1111
mysql -uroot -p$CFG_MYSQL_ROOT_PWD dbispconfig -e "INSERT INTO remote_user (remote_userid, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other, remote_username, remote_password, remote_functions) VALUES (1, 1, 1, 'riud', 'riud', '', 'roundcube', MD5('$CFG_ROUNDCUBE_PWD'), 'server_get,get_function_list,client_templates_get_all,server_get_serverid_by_ip,server_ip_get,server_ip_add,server_ip_update,server_ip_delete;client_get_all,client_get,client_add,client_update,client_delete,client_get_sites_by_user,client_get_by_username,client_change_password,client_get_id,client_delete_everything;mail_user_get,mail_user_add,mail_user_update,mail_user_delete;mail_alias_get,mail_alias_add,mail_alias_update,mail_alias_delete;mail_spamfilter_user_get,mail_spamfilter_user_add,mail_spamfilter_user_update,mail_spamfilter_user_delete;mail_policy_get,mail_policy_add,mail_policy_update,mail_policy_delete;mail_fetchmail_get,mail_fetchmail_add,mail_fetchmail_update,mail_fetchmail_delete;mail_spamfilter_whitelist_get,mail_spamfilter_whitelist_add,mail_spamfilter_whitelist_update,mail_spamfilter_whitelist_delete;mail_spamfilter_blacklist_get,mail_spamfilter_blacklist_add,mail_spamfilter_blacklist_update,mail_spamfilter_blacklist_delete;mail_user_filter_get,mail_user_filter_add,mail_user_filter_update,mail_user_filter_delete');"
1212
ln -s /usr/local/ispconfig/interface/ssl/ispserver.crt /usr/local/share/ca-certificates/ispserver.crt
1313
update-ca-certificates > /dev/null 2>&1
14-
sed -i 's/;openssl.cafile=/openssl.cafile=\/etc\/ssl\/certs\/ca-certificates.crt/' /etc/php5/apache2/php.ini
15-
sed -i 's/;openssl.cafile=/openssl.cafile=\/etc\/ssl\/certs\/ca-certificates.crt/' /etc/php5/fpm/php.ini
14+
sed -i 's/;openssl.cafile=/openssl.cafile=\/etc\/ssl\/certs\/ca-certificates.crt/' /etc/php/7.0/apache2/php.ini
15+
sed -i 's/;openssl.cafile=/openssl.cafile=\/etc\/ssl\/certs\/ca-certificates.crt/' /etc/php/7.0/fpm/php.ini
1616
if [ $CFG_WEBSERVER == "apache" ]; then
1717
service apache2 reload > /dev/null 2>&1
18-
service php5-fpm reload > /dev/null 2>&1
18+
service php7-fpm reload > /dev/null 2>&1
1919
else
2020
service nginx reload > /dev/null 2>&1
21-
service php5-fpm reload > /dev/null 2>&1
21+
service php7-fpm reload > /dev/null 2>&1
2222
fi
2323
fi
2424
}

distros/debian9/install_webserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ InstallWebServer() {
1717
apt-get -yqq install php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-imap php7.0-cli php7.0-cgi php-pear php7.0-mcrypt php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-zip php7.0-mbstring php7.0-imap php7.0-mcrypt php7.0-snmp php7.0-xmlrpc php7.0-xsl > /dev/null 2>&1
1818
echo -e "[${green}DONE${NC}]\n"
1919
echo -n "Installing PHP-FPM"
20-
apt-get -yqq php7.0-fpm
20+
apt-get -yqq install php7.0-fpm
2121
a2enmod actions > /dev/null 2>&1
2222
a2enmod proxy_fcgi > /dev/null 2>&1
2323
a2enmod alias > /dev/null 2>&1

0 commit comments

Comments
 (0)