
Change the file structure to make appropriate for stand alone parser. Change-Id: I6d5259b61b1cd82949262fee4930fa66703ad036
5 lines
183 B
Bash
Executable File
5 lines
183 B
Bash
Executable File
#!/bin/sh
|
|
sed --regexp-extended "s/(port\s*=\s*)[0-9]*/\1$db_port/g" </etc/mysql/my.cnf >/tmp/my.cnf
|
|
mv -f /tmp/my.cnf /etc/mysql/my.cnf
|
|
/etc/init.d/mysql stop
|
|
/etc/init.d/mysql start |