Przeglądaj źródła

Update wnf.py

use db_host in config file for mysql command
version-14
miguelfontanes 11 lat temu
rodzic
commit
b0d760cb36
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      wnf.py

+ 1
- 1
wnf.py Wyświetl plik

@@ -552,7 +552,7 @@ def mysql(site=None):
import commands, os import commands, os
msq = commands.getoutput('which mysql') msq = commands.getoutput('which mysql')
webnotes.init(site=site) webnotes.init(site=site)
os.execv(msq, [msq, '-u', webnotes.conf.db_name, '-p'+webnotes.conf.db_password, webnotes.conf.db_name])
os.execv(msq, [msq, '-u', webnotes.conf.db_name, '-p'+webnotes.conf.db_password, webnotes.conf.db_name, webnotes.conf.db_host or "localhost"])
webnotes.destroy() webnotes.destroy()


@cmd @cmd


Ładowanie…
Anuluj
Zapisz