mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #9701 from basvandijk/wordpress-fix
wordpress: use the correct mysql pidDir
This commit is contained in:
commit
a9056371a0
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ in
|
||||||
if [ ! -d ${serverInfo.fullConfig.services.mysql.dataDir}/${config.dbName} ]; then
|
if [ ! -d ${serverInfo.fullConfig.services.mysql.dataDir}/${config.dbName} ]; then
|
||||||
echo "Need to create the database '${config.dbName}' and grant permissions to user named '${config.dbUser}'."
|
echo "Need to create the database '${config.dbName}' and grant permissions to user named '${config.dbUser}'."
|
||||||
# Wait until MySQL is up
|
# Wait until MySQL is up
|
||||||
while [ ! -e /var/run/mysql/mysqld.pid ]; do
|
while [ ! -e ${serverInfo.fullConfig.services.mysql.pidDir}/mysqld.pid ]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
${pkgs.mysql}/bin/mysql -e 'CREATE DATABASE ${config.dbName};'
|
${pkgs.mysql}/bin/mysql -e 'CREATE DATABASE ${config.dbName};'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue