diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-28 17:50:08 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-12-28 17:52:14 +0200 |
| commit | 5cbe7326222b5b1d6ba52a7703660912a012282d (patch) | |
| tree | 9edee625fbfde23917f53e51c35443db43ec77d7 | |
| parent | 94325381eed478198398daa52e076e9a897337d5 (diff) | |
init-htpasswd-db stuff, ignore
| -rw-r--r-- | src/server/rhizi_server.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/rhizi_server.py b/src/server/rhizi_server.py index 58ede0c2..147976aa 100644 --- a/src/server/rhizi_server.py +++ b/src/server/rhizi_server.py @@ -248,12 +248,16 @@ def init_config(cfg_dir): cfg = Config.init_from_file(cfg_path) return cfg +def init_pw_db(cfg, user_pw_list_file): + pass # TODO: stub, will move to tools/ + if __name__ == "__main__": p = argparse.ArgumentParser(description='rhizi-server') p.add_argument('--config-dir', help='path to Rhizi config dir', default='res/etc') p.add_argument('--init-htpasswd-db', help='init login htpasswd db', action='store_const', const=True) + p.add_argument('--htpasswd-init-file', help='htpasswd db initialization file in \'user,pw\' format') args = p.parse_args() cfg = init_config(args.config_dir) @@ -265,7 +269,7 @@ if __name__ == "__main__": log.warn('access control disabled, all-granted access set on all URLs') if args.init_htpasswd_db: - init_pw_db(cfg) + init_pw_db(cfg, args.htpasswd_init_file) exit(0) webapp = init_webapp(cfg) |
