Skip to content

Commit 8c3864f

Browse files
committed
use variable for mysql datadir
1 parent ef9f3b4 commit 8c3864f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

10.11/Dockerfile.rhel10

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN INSTALL_PKGS="policycoreutils rsync tar xz gettext hostname bind-utils groff
4343
rpm -V ${INSTALL_PKGS} && \
4444
/usr/libexec/mysqld -V | grep -qe "${MARIADB_VERSION}\." && echo "Found VERSION ${MARIADB_VERSION}" && \
4545
dnf -y clean all --enablerepo='*' && \
46-
mkdir -p /var/lib/mysql/data && chown -R mysql:root /var/lib/mysql && \
46+
mkdir -p ${HOME}/data && chown -R mysql:root ${HOME} && \
4747
test "$(id mysql)" = "uid=27(mysql) gid=27(mysql) groups=27(mysql)"
4848

4949
# Get prefix path and path to scripts rather than hard-code them in scripts

0 commit comments

Comments
 (0)