Skip to content

Commit

Permalink
Add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
alexazhou committed Apr 30, 2016
1 parent 48e5f20 commit d131a41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,17 @@ def update_verynginx():
install_verynginx()


def exec_sys_cmd(cmd):
def exec_sys_cmd(cmd, accept_failed = False):
print( cmd )
ret = os.system( cmd )
if ret != 0:
print('*** The installing stopped because something was wrong')
exit(1)

if ret == 0:
return ret
else:
if accept_failed == False:
print('*** The installing stopped because something was wrong')
exit(1)
else:
return False

def common_input( s ):
if sys.version_info.major == 3:
Expand Down
1 change: 1 addition & 0 deletions verynginx/dashboard/js/dashboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var dashboard = new Object();

dashboard.version = '0.3';
dashboard.disable_log = false;
dashboard.last_failed_jqxhr;

Expand Down

0 comments on commit d131a41

Please sign in to comment.