install.py: include fixing gitea repo

This commit is contained in:
2025-04-08 09:41:42 +02:00
parent 1e7977c12e
commit c2747e884d
2 changed files with 7 additions and 2 deletions

View File

@ -64,6 +64,8 @@ def write_when_new(doit, filename, content):
def change_to_gitea(doit, *repos): def change_to_gitea(doit, *repos):
if not repos:
repos = GITEA_REPOS
dirty = False dirty = False
cwd = os.getcwd() cwd = os.getcwd()
try: try:
@ -103,4 +105,5 @@ def change_to_gitea(doit, *repos):
return dirty return dirty
change_to_gitea(False, *GITEA_REPOS) if __name__ == '__main__':
change_to_gitea(False)

View File

@ -596,10 +596,12 @@ def handle_config():
displaycfg = config.get('DISPLAY') displaycfg = config.get('DISPLAY')
if displaycfg and display_update(displaycfg): if displaycfg and display_update(displaycfg):
to_start['display'] = 'restart' to_start['display'] = 'restart'
if change_to_gitea(doit):
show.dirty = True
except Exception as e: except Exception as e:
print('ERROR: can not handle %s %s: %r' % (box.hostname, ifname, e)) print('ERROR: can not handle %s %s: %r' % (box.hostname, ifname, e))
raise raise
return False # return False
reload_systemd = False reload_systemd = False
for service, service_func in SERVICES.items(): for service, service_func in SERVICES.items():