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

@@ -46,7 +46,7 @@ elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then
PKGM="dnf" PKGM="dnf"
PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y" PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y"
PKGLIST="dnf.pkg.list" PKGLIST="dnf.pkg.list"
shortdist=cent8 shortdist=el8
else else
echo "This OS is not supported" echo "This OS is not supported"
exit exit

View File

@@ -12,7 +12,7 @@ if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist
MYSQLSNAME=mysql MYSQLSNAME=mysql
systemctl stop $MYSQLSNAME systemctl stop $MYSQLSNAME
sed -i 's#MySQLlog#/var/log/mysql/error.log#g' /etc/mysql/my.cnf sed -i 's#MySQLlog#/var/log/mysql/error.log#g' /etc/mysql/my.cnf
elif [ "$shortdist" = "cent8" ]; then elif [ "$shortdist" = "el8" ]; then
MYSQLSNAME=mysqld MYSQLSNAME=mysqld
systemctl stop $MYSQLSNAME systemctl stop $MYSQLSNAME
sed -i 's#MySQLlog#/var/log/mysqld.log#g' /etc/mysql/my.cnf sed -i 's#MySQLlog#/var/log/mysqld.log#g' /etc/mysql/my.cnf
@@ -21,7 +21,7 @@ fi
systemctl start $MYSQLSNAME systemctl start $MYSQLSNAME
systemctl enable $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'"; 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 fi

View File

@@ -43,7 +43,7 @@ elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then
PKGM="dnf" PKGM="dnf"
PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y" PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y"
PKGLIST="dnf.pkg.list" PKGLIST="dnf.pkg.list"
shortdist=cent8 shortdist=el8
echo "This os in not supported" echo "This os in not supported"
exit exit
else else