From b25213c6f8317f64ff09bccec77ca9658568a52d Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 21 May 2012 23:16:03 +0530 Subject: [PATCH] create login page if it doesnt exist --- wnf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wnf.py b/wnf.py index 25cf5edbce..1abf6f3e51 100755 --- a/wnf.py +++ b/wnf.py @@ -181,6 +181,8 @@ def run(): ss.validate() ss.on_update() os.system('chown -R apache:apache *') + if not os.path.exists('public/login-page.html') and os.path.exists('public/index.html'): + os.system('cp public/index.html public/login-page.html') # code replace elif options.replace: