Adjust sed to match code style

This commit is contained in:
Bartek Fabiszewski 2021-04-21 11:48:21 +02:00
parent 1a7eecd870
commit 326d025e8d

View File

@ -51,7 +51,7 @@ elif [ "$ULOGGER_DB_DRIVER" = "sqlite" ]; then
chown -R nobody:nobody /data/sqlite chown -R nobody:nobody /data/sqlite
sed -i "s/^\$dbdsn = .*$/\$dbdsn = \"sqlite:\/data\/sqlite\/ulogger.db\";/" /var/www/html/config.php sed -i "s/^\$dbdsn = .*$/\$dbdsn = \"sqlite:\/data\/sqlite\/ulogger.db\";/" /var/www/html/config.php
else else
sed -i "s|.*skip-networking.*|#skip-networking|g" /etc/my.cnf.d/mariadb-server.cnf sed -i "s/.*skip-networking.*/#skip-networking/" /etc/my.cnf.d/mariadb-server.cnf
mkdir -p /run/mysqld /data/mysql mkdir -p /run/mysqld /data/mysql
chown mysql:mysql /run/mysqld /data/mysql chown mysql:mysql /run/mysqld /data/mysql
mysql_install_db --user=mysql --datadir=/data/mysql mysql_install_db --user=mysql --datadir=/data/mysql