diff --git a/gitea.py b/gitea.py index 21232c8..1a1cce3 100644 --- a/gitea.py +++ b/gitea.py @@ -64,6 +64,8 @@ def write_when_new(doit, filename, content): def change_to_gitea(doit, *repos): + if not repos: + repos = GITEA_REPOS dirty = False cwd = os.getcwd() try: @@ -103,4 +105,5 @@ def change_to_gitea(doit, *repos): return dirty -change_to_gitea(False, *GITEA_REPOS) +if __name__ == '__main__': + change_to_gitea(False) diff --git a/install.py b/install.py index af3c0e2..9d53c45 100755 --- a/install.py +++ b/install.py @@ -596,10 +596,12 @@ def handle_config(): displaycfg = config.get('DISPLAY') if displaycfg and display_update(displaycfg): to_start['display'] = 'restart' + if change_to_gitea(doit): + show.dirty = True except Exception as e: print('ERROR: can not handle %s %s: %r' % (box.hostname, ifname, e)) raise - return False + # return False reload_systemd = False for service, service_func in SERVICES.items():