|
@@ -1072,10 +1072,20 @@ def update():
|
|
|
if platform.system() == 'Linux':
|
|
if platform.system() == 'Linux':
|
|
|
print('Update')
|
|
print('Update')
|
|
|
|
|
|
|
|
- os.system('git remote add opennamu https://github.com/2DU/openNAMU.git')
|
|
|
|
|
- ok = os.system('git pull openmau ' + up_data)
|
|
|
|
|
|
|
+ os.system('git remote add upstream https://github.com/2DU/openNAMU.git')
|
|
|
|
|
+ ok = os.system('git pull upstream ' + up_data)
|
|
|
if ok == 0:
|
|
if ok == 0:
|
|
|
return redirect('/re_start')
|
|
return redirect('/re_start')
|
|
|
|
|
+ else:
|
|
|
|
|
+ ok = os.system('git pull')
|
|
|
|
|
+ if ok == 0:
|
|
|
|
|
+ return redirect('/re_start')
|
|
|
|
|
+ else:
|
|
|
|
|
+ return css_html_js_minify.html_minify(flask.render_template(skin_check(),
|
|
|
|
|
+ imp = [load_lang('update'), wiki_set(), custom(), other2([0, 0])],
|
|
|
|
|
+ data = 'Select Branche Fail',
|
|
|
|
|
+ menu = [['manager/1', load_lang('admin')]]
|
|
|
|
|
+ ))
|
|
|
else:
|
|
else:
|
|
|
if platform.system() == 'Windows':
|
|
if platform.system() == 'Windows':
|
|
|
print('Download')
|
|
print('Download')
|