|
698 | 698 | # Installing MariaDB repo |
699 | 699 | if [ "$mysql" = 'yes' ]; then |
700 | 700 | echo "[ * ] MariaDB" |
701 | | - echo "deb [arch=$ARCH signed-by=/usr/share/keyrings/mariadb-keyring.gpg] https://dlm.mariadb.com/repo/mariadb-server/$mariadb_v/repo/$VERSION $codename main" > $apt/mariadb.list |
702 | | - curl -s https://mariadb.org/mariadb_release_signing_key.asc | gpg --dearmor | tee /usr/share/keyrings/mariadb-keyring.gpg >/dev/null 2>&1 |
| 701 | + if [ "$release" != '22.04' ]; then |
| 702 | + echo "deb [arch=$ARCH signed-by=/usr/share/keyrings/mariadb-keyring.gpg] https://dlm.mariadb.com/repo/mariadb-server/$mariadb_v/repo/$VERSION $codename main" > $apt/mariadb.list |
| 703 | + else |
| 704 | + echo "#deb [arch=$ARCH signed-by=/usr/share/keyrings/mariadb-keyring.gpg] https://dlm.mariadb.com/repo/mariadb-server/$mariadb_v/repo/$VERSION $codename main" > $apt/mariadb.list |
| 705 | + fi |
| 706 | + curl -s https://mariadb.org/mariadb_release_signing_key.asc | gpg --dearmor | tee /usr/share/keyrings/mariadb-keyring.gpg >/dev/null 2>&1 |
703 | 707 | fi |
704 | 708 |
|
705 | 709 | # Installing HestiaCP repo |
@@ -1888,22 +1892,23 @@ if [ "$sieve" = 'yes' ]; then |
1888 | 1892 |
|
1889 | 1893 | # exim4 install |
1890 | 1894 | sed -i "s/\stransport = local_delivery/ transport = dovecot_virtual_delivery/" /etc/exim4/exim4.conf.template |
1891 | | - |
1892 | 1895 | sed -i "s/address_pipe:/dovecot_virtual_delivery:\n driver = pipe\n command = \/usr\/lib\/dovecot\/dovecot-lda -e -d \$local_part@\$domain -f \$sender_address -a \$original_local_part@\$original_domain\n delivery_date_add\n envelope_to_add\n return_path_add\n log_output = true\n log_defer_output = true\n user = \${extract{2}{:}{\${lookup{\$local_part}lsearch{\/etc\/exim4\/domains\/\${lookup{\$domain}dsearch{\/etc\/exim4\/domains\/}}\/passwd}}}}\n group = mail\n return_output\n\naddress_pipe:/g" /etc/exim4/exim4.conf.template |
1893 | 1896 |
|
1894 | | - # Modify Roundcube install |
1895 | | - mkdir -p $RC_CONFIG_DIR/plugins/managesieve |
1896 | | - |
1897 | | - cp -f $HESTIA_INSTALL_DIR/roundcube/plugins/config_managesieve.inc.php $RC_CONFIG_DIR/plugins/managesieve/config.inc.php |
1898 | | - ln -s $RC_CONFIG_DIR/plugins/managesieve/config.inc.php $RC_INSTALL_DIR/plugins/managesieve/config.inc.php |
1899 | | - |
1900 | 1897 | # Permission changes |
1901 | 1898 | chown -R dovecot:mail /var/log/dovecot.log |
1902 | 1899 | chmod 660 /var/log/dovecot.log |
1903 | | - chown -R root:www-data $RC_CONFIG_DIR/ |
1904 | | - chmod 751 -R $RC_CONFIG_DIR |
1905 | | - chmod 644 $RC_CONFIG_DIR/*.php |
1906 | | - chmod 644 $RC_CONFIG_DIR/plugins/managesieve/config.inc.php |
| 1900 | + |
| 1901 | + if [ -d "/var/lib/roundcube" ]; then |
| 1902 | + # Modify Roundcube config |
| 1903 | + mkdir -p $RC_CONFIG_DIR/plugins/managesieve |
| 1904 | + cp -f $HESTIA_INSTALL_DIR/roundcube/plugins/config_managesieve.inc.php $RC_CONFIG_DIR/plugins/managesieve/config.inc.php |
| 1905 | + ln -s $RC_CONFIG_DIR/plugins/managesieve/config.inc.php $RC_INSTALL_DIR/plugins/managesieve/config.inc.php\ |
| 1906 | + chown -R root:www-data $RC_CONFIG_DIR/ |
| 1907 | + chmod 751 -R $RC_CONFIG_DIR |
| 1908 | + chmod 644 $RC_CONFIG_DIR/*.php |
| 1909 | + chmod 644 $RC_CONFIG_DIR/plugins/managesieve/config.inc.php |
| 1910 | + sed -i "s/'archive'/'archive', 'managesieve'/g" $RC_CONFIG_DIR/config.inc.php |
| 1911 | + fi |
1907 | 1912 |
|
1908 | 1913 | sed -i "s/'archive'/'archive', 'managesieve'/g" $RC_CONFIG_DIR/config.inc.php |
1909 | 1914 |
|
|
0 commit comments