sudo fix for install script

This commit is contained in:
Rick Falkvinge
2019-02-16 15:33:08 +01:00
parent 917fbc387d
commit fd3cf55108
+2 -1
View File
@@ -64,7 +64,8 @@ if [ $ISDEBIAN -gt 0 ]; then
echo " "
echo "GRANT ALL PRIVILEGES on *.* to 'root'@'localhost' IDENTIFIED BY 'sandbox';" > /tmp/mariadbroot.sql
echo "FLUSH PRIVILEGES;" >> /tmp/mariadbroot.sql
mysql -u root -psandbox < /tmp/mariadbroot.sql
$SUDO mysql -u root -psandbox < /tmp/mariadbroot.sql
else
echo " "
echo "Step 3 - No configuration of MySQL required, skipped"