Replaced cent8 with el8 for beter support

This commit is contained in:
2020-12-09 13:26:38 +01:00
parent f1cf3f8155
commit fb8b2a5cf4
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist
MYSQLSNAME=mysql
systemctl stop $MYSQLSNAME
sed -i 's#MySQLlog#/var/log/mysql/error.log#g' /etc/mysql/my.cnf
elif [ "$shortdist" = "cent8" ]; then
elif [ "$shortdist" = "el8" ]; then
MYSQLSNAME=mysqld
systemctl stop $MYSQLSNAME
sed -i 's#MySQLlog#/var/log/mysqld.log#g' /etc/mysql/my.cnf
@@ -21,7 +21,7 @@ fi
systemctl start $MYSQLSNAME
systemctl enable $MYSQLSNAME
if [ "$shortdist" = "cent8" ]; then
if [ "$shortdist" = "el8" ]; then
mysql -u root -p$(awk '/A temporary password is generated for/ {a=$0} END{ print a }' /var/log/mysqld.log | awk '{print $(NF)}') --connect-expired-password -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '$password'";
fi