@@ -41,7 +41,8 @@ software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
4141 php$fpm_v -mbstring php$fpm_v -opcache php$fpm_v -pspell php$fpm_v -readline
4242 php$fpm_v -xml postgresql postgresql-contrib proftpd-basic quota
4343 roundcube-core roundcube-mysql roundcube-plugins rrdtool rssh spamassassin
44- sudo hestia hestia-nginx hestia-php vim-common vsftpd whois zip acl sysstat setpriv"
44+ sudo hestia hestia-nginx hestia-php vim-common vsftpd whois zip acl sysstat
45+ setpriv libonig5"
4546
4647# Defining help function
4748help () {
@@ -790,15 +791,15 @@ if [ -d "$withdebs" ]; then
790791 software=$( echo " $software " | sed -e " s/hestia-php//" )
791792 software=$( echo " $software " | sed -e " s/hestia//" )
792793fi
793-
794794if [ " $release " = ' 16.04' ] || [ " $release " = ' 20.04' ]; then
795795 software=$( echo " $software " | sed -e " s/setpriv/util-linux/" )
796796fi
797-
798797if [ " $release " = ' 20.04' ]; then
799798 software=$( echo " $software " | sed -e " s/rssh//" )
800799fi
801-
800+ if [ " $release " != ' 20.04' ]; then
801+ software=$( echo " $software " | sed -e " s/libonig5//" )
802+ fi
802803
803804# ----------------------------------------------------------#
804805# Disable Apparmor on LXC #
@@ -1175,7 +1176,9 @@ if [ "$apache" = 'yes' ]; then
11751176 chmod 640 /var/log/apache2/access.log /var/log/apache2/error.log
11761177 chmod 751 /var/log/apache2/domains
11771178
1178- update-rc.d apache2 defaults > /dev/null 2>&1
1179+ if [ " $release " != ' 20.04' ]; then
1180+ update-rc.d apache2 defaults > /dev/null 2>&1
1181+ fi
11791182 systemctl start apache2 >> $LOG
11801183 check_result $? " apache2 start failed"
11811184else
@@ -1322,8 +1325,9 @@ if [ "$mysql" = 'yes' ]; then
13221325 # Unpack files
13231326 tar xzf phpMyAdmin-$pma_v -all-languages.tar.gz
13241327
1325- # Delete file to prevent error
1328+ # Delete files to prevent error
13261329 rm -fr /usr/share/phpmyadmin/doc/html
1330+ rm -fr /usr/share/phpmyadmin/js/vendor/openlayers
13271331
13281332 # Overwrite old files
13291333 cp -rf phpMyAdmin-$pma_v -all-languages/* /usr/share/phpmyadmin
@@ -1333,7 +1337,7 @@ if [ "$mysql" = 'yes' ]; then
13331337 sed -i " s|define('TEMP_DIR', ROOT_PATH . 'tmp/');|define('TEMP_DIR', '/var/lib/phpmyadmin/tmp/');|" /usr/share/phpmyadmin/libraries/vendor_config.php
13341338
13351339 # Create temporary folder and change permission
1336- mkdir /usr/share/phpmyadmin/tmp
1340+ [ ! -d " /usr/share/phpmyadmin/tmp " ] && mkdir /usr/share/phpmyadmin/tmp
13371341 chmod 777 /usr/share/phpmyadmin/tmp
13381342
13391343 # Clear Up
13661370# ----------------------------------------------------------#
13671371
13681372if [ " $named " = ' yes' ]; then
1369- echo " (*) Configuring Bind DNS server..."
1373+ echo " (*) Configuring Bind DNS server..."
13701374 cp -f $HESTIA_INSTALL_DIR /bind/named.conf /etc/bind/
13711375 cp -f $HESTIA_INSTALL_DIR /bind/named.conf.options /etc/bind/
13721376 chown root:bind /etc/bind/named.conf
@@ -1382,8 +1386,13 @@ if [ "$named" = 'yes' ]; then
13821386 systemctl restart apparmor >> $LOG
13831387 fi
13841388 fi
1385- update-rc.d bind9 defaults
1386- systemctl start bind9
1389+ if [ " $release " = ' 20.04' ]; then
1390+ update-rc.d named defaults
1391+ systemctl start named
1392+ else
1393+ update-rc.d bind9 defaults
1394+ systemctl start bind9
1395+ fi
13871396 check_result $? " bind9 start failed"
13881397
13891398 # Workaround for OpenVZ/Virtuozzo
@@ -1668,7 +1677,7 @@ if [ "$apache" = 'yes' ] && [ "$nginx" = 'yes' ] ; then
16681677 echo " </IfModule>" >> remoteip.conf
16691678 sed -i " s/LogFormat \" %h/LogFormat \" %a/g" /etc/apache2/apache2.conf
16701679 a2enmod remoteip >> $LOG
1671- systemctl restart apache2
1680+ systemctl start apache2
16721681fi
16731682
16741683# Configuring MariaDB host
0 commit comments