create login page if it doesnt exist

This commit is contained in:
Anand Doshi 2012-05-21 23:16:03 +05:30
parent 5930578fb7
commit b25213c6f8

2
wnf.py
View file

@ -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: