diff options
-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 a4b550cf..14a47246 100644 --- a/etc/nextcloudpi-config.d/nc-database.sh +++ b/etc/nextcloudpi-config.d/nc-database.sh @@ -62,8 +62,8 @@ configure() echo "moving database to $DBDIR_..." service mysql stop - mv $SRCDIR "$DBDIR_" || return 1 - sed -i "s|^datadir.*|datadir = $DBDIR_|" /etc/mysql/mariadb.conf.d/50-server.cnf + mv $SRCDIR "$DBDIR_" && \ + sed -i "s|^datadir.*|datadir = $DBDIR_|" /etc/mysql/mariadb.conf.d/50-server.cnf service mysql start sudo -u www-data php occ maintenance:mode --off |