mariadb rather than mysql

This commit is contained in:
Bob Mottram 2017-06-05 14:55:39 +01:00
parent 9b2bbf2903
commit 0e4ec45c74
3 changed files with 3 additions and 3 deletions

View File

@ -205,7 +205,7 @@ function restore_mariadb {
exit 962 exit 962
fi fi
echo $"Restarting database" echo $"Restarting database"
systemctl restart mysql systemctl restart mariadb
echo $"Change the MariaDB password to the backup version" echo $"Change the MariaDB password to the backup version"
DATABASE_PASSWORD="$db_pass" DATABASE_PASSWORD="$db_pass"
${PROJECT_NAME}-pass -u root -a mariadb -p "$DATABASE_PASSWORD" ${PROJECT_NAME}-pass -u root -a mariadb -p "$DATABASE_PASSWORD"

View File

@ -198,7 +198,7 @@ function restore_mariadb {
exit 962 exit 962
fi fi
echo $"Restarting database" echo $"Restarting database"
systemctl restart mysql systemctl restart mariadb
echo $"Change the MariaDB password to the backup version" echo $"Change the MariaDB password to the backup version"
DATABASE_PASSWORD="$db_pass" DATABASE_PASSWORD="$db_pass"
${PROJECT_NAME}-pass -u root -a mariadb -p "$DATABASE_PASSWORD" ${PROJECT_NAME}-pass -u root -a mariadb -p "$DATABASE_PASSWORD"

View File

@ -166,7 +166,7 @@ function install_mariadb {
# echo $'/etc/mysql/conf.d/my.cnf not found' # echo $'/etc/mysql/conf.d/my.cnf not found'
# exit 6376245 # exit 6376245
#fi #fi
systemctl restart mysql systemctl restart mariadb
mysqladmin -u root password "$MARIADB_PASSWORD" mysqladmin -u root password "$MARIADB_PASSWORD"
mark_completed $FUNCNAME mark_completed $FUNCNAME