ect (or 2du) пре 8 година
родитељ
комит
16c0ef19ca
1 измењених фајлова са 12 додато и 2 уклоњено
  1. 12 2
      app.py

+ 12 - 2
app.py

@@ -1072,10 +1072,20 @@ def update():
     if platform.system() == 'Linux':
         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:
             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:
         if platform.system() == 'Windows':
             print('Download')