Skip to content

Commit 6a43178

Browse files
authored
Merge pull request hestiacp#1244 from hestiacp/fix/2020-10-rm-my.cnf-symbolic-link
Remove symbolic link my.cnf
2 parents 116af68 + 674d593 commit 6a43178

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

install/hst-install-debian.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,11 @@ if [ "$mysql" = 'yes' ]; then
13231323
if [ $memory -gt 3900000 ]; then
13241324
mycnf="my-large.cnf"
13251325
fi
1326-
1327-
# Configuring MariaDB
1326+
1327+
# Remove symbolic link
1328+
rm -f /etc/mysql/my.cnf
1329+
1330+
# Configuring MariaDB
13281331
cp -f $HESTIA_INSTALL_DIR/mysql/$mycnf /etc/mysql/my.cnf
13291332
mysql_install_db >> $LOG
13301333

install/hst-install-ubuntu.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,9 @@ if [ "$mysql" = 'yes' ]; then
13641364
mycnf="my-large.cnf"
13651365
fi
13661366

1367+
# Remove symbolic link
1368+
rm -f /etc/mysql/my.cnf
1369+
13671370
# Configuring MariaDB
13681371
cp -f $HESTIA_INSTALL_DIR/mysql/$mycnf /etc/mysql/my.cnf
13691372
mysql_install_db >> $LOG

0 commit comments

Comments
 (0)