This commit is contained in:
Mr Chen
2018-12-19 15:41:00 +08:00
parent 6e4e7bcf68
commit bfc0b9efa3
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -80,6 +80,12 @@ def isInstalledWeb():
return False
def restartWeb():
if isInstalledWeb():
initd = getServerDir() + '/openresty/init.d/openresty'
execShell(initd + ' ' + 'reload')
def M(table):
sql = db.Sql()
return sql.table(table)