Przeglądaj źródła

Adjust version check for 18.04.

Raphael Schneeberger 7 lat temu
rodzic
commit
75e66479a4
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      install/hst-install-ubuntu.sh

+ 2 - 2
install/hst-install-ubuntu.sh

@@ -1051,10 +1051,10 @@ if [ "$mysql" = 'yes' ]; then
 
 
     # Configuring MySQL/MariaDB
     # Configuring MySQL/MariaDB
     cp -f $hestiacp/mysql/$mycnf /etc/mysql/my.cnf
     cp -f $hestiacp/mysql/$mycnf /etc/mysql/my.cnf
-    if [ "$release" != '16.04' ]; then
+    if [ "$release" = '14.04' ]; then
         mysql_install_db
         mysql_install_db
     fi
     fi
-    if [ "$release" == '18.04' ]; then
+    if [ "$release" = '16.04' ] || [ "$release" = '18.04' ]; then
         mkdir /var/lib/mysql
         mkdir /var/lib/mysql
         chown mysql:mysql /var/lib/mysql
         chown mysql:mysql /var/lib/mysql
         mysqld --initialize-insecure
         mysqld --initialize-insecure