@@ -61,7 +61,7 @@ help() {
6161 -j, --proftpd Install ProFTPD [yes|no] default: no
6262 -k, --named Install Bind [yes|no] default: yes
6363 -m, --mysql Install MariaDB [yes|no] default: yes
64- -M, --mysql-classic Install MySQL [yes|no] default: no
64+ -M, --mysql8 Install MySQL [yes|no] default: no
6565 -g, --postgresql Install PostgreSQL [yes|no] default: no
6666 -x, --exim Install Exim [yes|no] default: yes
6767 -z, --dovecot Install Dovecot [yes|no] default: yes
@@ -203,7 +203,9 @@ for arg; do
203203 --proftpd) args=" ${args} -j " ;;
204204 --named) args=" ${args} -k " ;;
205205 --mysql) args=" ${args} -m " ;;
206+ --mariadb) args=" ${args} -m " ;;
206207 --mysql-classic) args=" ${args} -M " ;;
208+ --mysql8) args=" ${args} -M " ;;
207209 --postgresql) args=" ${args} -g " ;;
208210 --exim) args=" ${args} -x " ;;
209211 --dovecot) args=" ${args} -z " ;;
@@ -235,34 +237,34 @@ eval set -- "$args"
235237# Parsing arguments
236238while getopts " a:w:v:j:k:m:M:g:d:x:z:Z:c:t:i:b:r:o:q:l:y:s:e:p:D:fh" Option; do
237239 case $Option in
238- a) apache=$OPTARG ;; # Apache
239- w) phpfpm=$OPTARG ;; # PHP-FPM
240- o) multiphp=$OPTARG ;; # Multi-PHP
241- v) vsftpd=$OPTARG ;; # Vsftpd
242- j) proftpd=$OPTARG ;; # Proftpd
243- k) named=$OPTARG ;; # Named
244- m) mysql=$OPTARG ;; # MariaDB
245- M) mysqlclassic =$OPTARG ;; # MySQL
246- g) postgresql=$OPTARG ;; # PostgreSQL
247- x) exim=$OPTARG ;; # Exim
248- z) dovecot=$OPTARG ;; # Dovecot
249- Z) sieve=$OPTARG ;; # Sieve
250- c) clamd=$OPTARG ;; # ClamAV
251- t) spamd=$OPTARG ;; # SpamAssassin
252- i) iptables=$OPTARG ;; # Iptables
253- b) fail2ban=$OPTARG ;; # Fail2ban
254- q) quota=$OPTARG ;; # FS Quota
255- r) port=$OPTARG ;; # Backend Port
256- l) lang=$OPTARG ;; # Language
257- d) api=$OPTARG ;; # Activate API
258- y) interactive=$OPTARG ;; # Interactive install
259- s) servername=$OPTARG ;; # Hostname
260- e) email=$OPTARG ;; # Admin email
261- p) vpass=$OPTARG ;; # Admin password
262- D) withdebs=$OPTARG ;; # Hestia debs path
263- f) force=' yes' ;; # Force install
264- h) help ;; # Help
265- * ) help ;; # Print help (default)
240+ a) apache=$OPTARG ;; # Apache
241+ w) phpfpm=$OPTARG ;; # PHP-FPM
242+ o) multiphp=$OPTARG ;; # Multi-PHP
243+ v) vsftpd=$OPTARG ;; # Vsftpd
244+ j) proftpd=$OPTARG ;; # Proftpd
245+ k) named=$OPTARG ;; # Named
246+ m) mysql=$OPTARG ;; # MariaDB
247+ M) mysql8 =$OPTARG ;; # MySQL
248+ g) postgresql=$OPTARG ;; # PostgreSQL
249+ x) exim=$OPTARG ;; # Exim
250+ z) dovecot=$OPTARG ;; # Dovecot
251+ Z) sieve=$OPTARG ;; # Sieve
252+ c) clamd=$OPTARG ;; # ClamAV
253+ t) spamd=$OPTARG ;; # SpamAssassin
254+ i) iptables=$OPTARG ;; # Iptables
255+ b) fail2ban=$OPTARG ;; # Fail2ban
256+ q) quota=$OPTARG ;; # FS Quota
257+ r) port=$OPTARG ;; # Backend Port
258+ l) lang=$OPTARG ;; # Language
259+ d) api=$OPTARG ;; # Activate API
260+ y) interactive=$OPTARG ;; # Interactive install
261+ s) servername=$OPTARG ;; # Hostname
262+ e) email=$OPTARG ;; # Admin email
263+ p) vpass=$OPTARG ;; # Admin password
264+ D) withdebs=$OPTARG ;; # Hestia debs path
265+ f) force=' yes' ;; # Force install
266+ h) help ;; # Help
267+ * ) help ;; # Print help (default)
266268 esac
267269done
268270
316318if [ " $apache " = ' no' ]; then
317319 phpfpm=' yes'
318320fi
319- if [ " $mysql " = ' yes' ] && [ " $mysqlclassic " = ' yes' ]; then
321+ if [ " $mysql " = ' yes' ] && [ " $mysql8 " = ' yes' ]; then
320322 mysql=' no'
321323fi
322324
564566if [ " $mysql " = ' yes' ]; then
565567 echo ' - MariaDB Database Server'
566568fi
567- if [ " $mysqlclassic " = ' yes' ]; then
569+ if [ " $mysql8 " = ' yes' ]; then
568570 echo ' - MySQL8 Database Server'
569571fi
570572if [ " $postgresql " = ' yes' ]; then
@@ -726,7 +728,7 @@ if [ "$mysql" = 'yes' ]; then
726728fi
727729
728730# Installing Mysql8 repo
729- if [ " $mysqlclassic " = ' yes' ]; then
731+ if [ " $mysql8 " = ' yes' ]; then
730732 echo " [ * ] Mysql 8"
731733 echo " deb [arch=$ARCH signed-by=/usr/share/keyrings/mysql-keyring.gpg] http://repo.mysql.com/apt/debian/ $codename mysql-apt-config" >> /etc/apt/sources.list.d/mysql.list
732734 echo " deb [arch=$ARCH signed-by=/usr/share/keyrings/mysql-keyring.gpg] http://repo.mysql.com/apt/debian/ $codename mysql-8.0" >> /etc/apt/sources.list.d/mysql.list
@@ -910,12 +912,12 @@ if [ "$mysql" = 'no' ]; then
910912 software=$( echo " $software " | sed -e " s/mariadb-client//" )
911913 software=$( echo " $software " | sed -e " s/mariadb-common//" )
912914fi
913- if [ " $mysqlclassic " = ' no' ]; then
915+ if [ " $mysql8 " = ' no' ]; then
914916 software=$( echo " $software " | sed -e " s/mysql-server//" )
915917 software=$( echo " $software " | sed -e " s/mysql-client//" )
916918 software=$( echo " $software " | sed -e " s/mysql-common//" )
917919fi
918- if [ " $mysql " = ' no' ] && [ " $mysqlclassic " = ' no' ]; then
920+ if [ " $mysql " = ' no' ] && [ " $mysql8 " = ' no' ]; then
919921 software=$( echo " $software " | sed -e " s/php$fpm_v -mysql//" )
920922fi
921923if [ " $postgresql " = ' no' ]; then
@@ -1139,7 +1141,7 @@ if [ "$phpfpm" = 'yes' ]; then
11391141fi
11401142
11411143# Database stack
1142- if [ " $mysql " = ' yes' ] || [ " $mysqlclassic " = ' yes' ]; then
1144+ if [ " $mysql " = ' yes' ] || [ " $mysql8 " = ' yes' ]; then
11431145 installed_db_types=' mysql'
11441146fi
11451147if [ " $postgresql " = ' yes' ]; then
15121514# Configure MariaDB / MySQL #
15131515# ----------------------------------------------------------#
15141516
1515- if [ " $mysql " = ' yes' ] || [ " $mysqlclassic " = ' yes' ]; then
1517+ if [ " $mysql " = ' yes' ] || [ " $mysql8 " = ' yes' ]; then
15161518 [ " $mysql " = ' yes' ] && mysql_type=" MariaDB" || mysql_type=" MySQL"
15171519 echo " [ * ] Configuring $mysql_type database server..."
15181520 mycnf=" my-small.cnf"
15901592# shellcheck source=/usr/local/hestia/install/upgrade/upgrade.conf
15911593source $HESTIA /install/upgrade/upgrade.conf
15921594
1593- if [ " $mysql " = ' yes' ] || [ " $mysqlclassic " = ' yes' ]; then
1595+ if [ " $mysql " = ' yes' ] || [ " $mysql8 " = ' yes' ]; then
15941596 # Display upgrade information
15951597 echo " [ * ] Installing phpMyAdmin version v$pma_v ..."
15961598
@@ -1870,7 +1872,7 @@ if [ "$fail2ban" = 'yes' ]; then
18701872fi
18711873
18721874# Configuring MariaDB/MySQL host
1873- if [ " $mysql " = ' yes' ] || [ " $mysqlclassic " = ' yes' ]; then
1875+ if [ " $mysql " = ' yes' ] || [ " $mysql8 " = ' yes' ]; then
18741876 $HESTIA /bin/v-add-database-host mysql localhost root $mpass
18751877fi
18761878
18841886# ----------------------------------------------------------#
18851887
18861888# Min requirements Dovecot + Exim + Mysql
1887- if ([ " $mysql " == ' yes' ] || [ " $mysqlclassic " == ' yes' ]) && [ " $dovecot " == " yes" ]; then
1889+ if ([ " $mysql " == ' yes' ] || [ " $mysql8 " == ' yes' ]) && [ " $dovecot " == " yes" ]; then
18881890 echo " [ * ] Install Roundcube..."
18891891 $HESTIA /bin/v-add-sys-roundcube
18901892 write_config_value " WEBMAIL_ALIAS" " webmail"
@@ -2097,6 +2099,8 @@ echo "@reboot root sleep 10 && rm /etc/cron.d/hestia-ssl && PATH='/usr/local/sbi
20972099# ----------------------------------------------------------#
20982100
20992101echo " [ * ] Updating configuration files..."
2102+
2103+ BIN=" $HESTIA /bin"
21002104source $HESTIA /func/syshealth.sh
21012105syshealth_repair_system_config
21022106
0 commit comments