Mercurial Hosting > luan
diff src/luan/host/Util.luan @ 1626:cf9dfead83a3
use Config.postgres
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 07 Dec 2021 18:30:02 -0700 |
parents | f67f972bd648 |
children | 07be5015159d |
line wrap: on
line diff
--- a/src/luan/host/Util.luan Sun Sep 05 12:32:27 2021 -0600 +++ b/src/luan/host/Util.luan Tue Dec 07 18:30:02 2021 -0700 @@ -34,10 +34,11 @@ file.write_text("return "..stringify{password=password}.."\n") end -local pg_admin = Package.load("file:postgres.luan") +local Config = require "file:Config.luan" +local pg_admin = Config.postgres function Util.set_postgres_password(domain,password) - if pg_admin == false then + if pg_admin == nil then return end local db = database(pg_admin) @@ -50,7 +51,7 @@ end function Util.check_postgres_password(domain,password) - if pg_admin == false then + if pg_admin == nil then return end local db = database(pg_admin)