Browse Source

Suppress error from init.d during install on Azure VMs

Kristan Kenney 6 years ago
parent
commit
fef7531d7c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      install/hst-install-debian.sh
  2. 1 1
      install/hst-install-ubuntu.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -1324,7 +1324,7 @@ if [ "$mysql" = 'yes' ]; then
     cp -f $hestiacp/mysql/$mycnf /etc/mysql/my.cnf
     cp -f $hestiacp/mysql/$mycnf /etc/mysql/my.cnf
     mysql_install_db >> $LOG
     mysql_install_db >> $LOG
 
 
-    update-rc.d mysql defaults
+    update-rc.d mysql defaults > /dev/null 2>&1
     service mysql start >> $LOG
     service mysql start >> $LOG
     check_result $? "mariadb start failed"
     check_result $? "mariadb start failed"
 
 

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

@@ -1287,7 +1287,7 @@ if [ "$mysql" = 'yes' ]; then
     cp -f $hestiacp/mysql/$mycnf /etc/mysql/my.cnf
     cp -f $hestiacp/mysql/$mycnf /etc/mysql/my.cnf
     mysql_install_db >> $LOG
     mysql_install_db >> $LOG
 
 
-    update-rc.d mysql defaults
+    update-rc.d mysql defaults > /dev/null 2>&1
     service mysql start >> $LOG
     service mysql start >> $LOG
     check_result $? "mariadb start failed"
     check_result $? "mariadb start failed"