Skip to content

Commit 4556b5d

Browse files
committed
Fix grep on MySQL configuration file
The file is not readable by non-root users (at least on openSUSE), so we need to use sudo. Change-Id: I42fff066a60318a954110736d5352387888931e8
1 parent 20cfd67 commit 4556b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ EOF
853853
sudo sed -i '/^bind-address/s/127.0.0.1/0.0.0.0/g' $MY_CONF
854854

855855
# Set default db type to InnoDB
856-
if grep -q "default-storage-engine" $MY_CONF; then
856+
if sudo grep -q "default-storage-engine" $MY_CONF; then
857857
# Change it
858858
sudo bash -c "source $TOP_DIR/functions; iniset $MY_CONF mysqld default-storage-engine InnoDB"
859859
else

0 commit comments

Comments
 (0)