diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-07-07 09:01:10 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-07-07 09:02:04 +0300 |
commit | 33e01e7cd80c9b7c58bfafb20fbabb5ae94a9e87 (patch) | |
tree | e68d0a425f228b07fb7a156d7b7acaf9f83f7a9d /etc/nextcloudpi-config.d/nc-database.sh | |
parent | a98bf796ee4c097ba9c09f0ac56048bdb114ee16 (diff) |
changed mysql config file locationv0.16.2
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-database.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-database.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/nextcloudpi-config.d/nc-database.sh b/etc/nextcloudpi-config.d/nc-database.sh index e8e7a923..8015e80a 100644 --- a/etc/nextcloudpi-config.d/nc-database.sh +++ b/etc/nextcloudpi-config.d/nc-database.sh @@ -36,7 +36,7 @@ or the database will fail. configure() { - local SRCDIR=$( grep datadir /etc/mysql/my.cnf | cut -d= -f2 ) + local SRCDIR=$( grep datadir /etc/mysql/mariadb.conf.d/50-server.cnf | cut -d= -f2 ) [ -d $SRCDIR ] || { echo -e "database directory $SRCDIR not found"; return 1; } [ -d "$DBDIR_" ] && { @@ -61,7 +61,7 @@ configure() service mysql stop mv $SRCDIR "$DBDIR_" || return 1 - sed -i "s|^datadir.*|datadir = $DBDIR_|" /etc/mysql/my.cnf + sed -i "s|^datadir.*|datadir = $DBDIR_|" /etc/mysql/mariadb.conf.d/50-server.cnf service mysql start && service apache2 start } |