We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5106d53 commit eab5c3cCopy full SHA for eab5c3c
install/hst-install-ubuntu.sh
@@ -540,7 +540,12 @@ cp -r /etc/mysql/* $hst_backups/mysql > /dev/null 2>&1
540
mv -f /root/.my.cnf $hst_backups/mysql > /dev/null 2>&1
541
if [ "$release" = '16.04' ] || [ "$release" = '18.04' ]; then
542
if [ -e '/etc/init.d/mysql' ]; then
543
- mkdir -p /var/lib/mysql > /dev/null 2>&1
+ if [ -d '/var/lib/mysql' ]; then
544
+ rm -fr /var/lib/mysql
545
+ mkdir -p /var/lib/mysql
546
+ else
547
548
+ fi
549
chown mysql:mysql /var/lib/mysql
550
mysqld --initialize-insecure
551
fi
0 commit comments