create login page if it doesnt exist
This commit is contained in:
parent
5930578fb7
commit
b25213c6f8
1 changed files with 2 additions and 0 deletions
2
wnf.py
2
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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue