更新 'install_mariadb.sh'

This commit is contained in:
toby 2023-01-15 11:47:04 +08:00
parent 373c1af921
commit 10147ea6a3
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ cd /var/lib
mkdir mysql
mpoint=`stat -c %m -- "$Z_MYSQL_INS_FOLDER"`
if [ x"$mpoint" = x"test" ]; then
if [ x"$mpoint" = x"/" ]; then
sed -i '/\/var\/lib\/mysql/s/.*/#&/' /etc/fstab
echo "$Z_MYSQL_INS_FOLDER/var /var/lib/mysql none bind,x-systemd.requires-mounts-for=$mpoint 0 0" >>/etc/fstab
mount -a