diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b54ecef..7da2f0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -184,7 +184,7 @@ jobs: release_name: ${{ env.VERSION }} body: | **Changes**: - - Fixed mail report sending + - Added a way to specify SMTP host and port for mail report sending draft: false prerelease: false diff --git a/src/controllers/App/Service.py b/src/controllers/App/Service.py index f847dfa..568955e 100644 --- a/src/controllers/App/Service.py +++ b/src/controllers/App/Service.py @@ -35,8 +35,8 @@ def main(self): try: print("[linupdate] Hi, I'm linupdate service. I will start all enabled module agents and let them run in background. Stop me and I will stop all module agents.") - # Wait 10 seconds to let the above message to be read - time.sleep(10) + # Wait 3 seconds to let the above message to be read + time.sleep(3) while True: # Restart check diff --git a/src/controllers/Package/Apt.py b/src/controllers/Package/Apt.py index 17346fa..fa9a2cf 100644 --- a/src/controllers/Package/Apt.py +++ b/src/controllers/Package/Apt.py @@ -195,18 +195,6 @@ def update_cache(self): self.wait_for_dpkg_lock() self.aptcache.update() except Exception as e: - # TODO debug - # Print apt process with ps - result = subprocess.run( - ['fuser -vik -TERM /var/lib/apt/lists/lock'], - stdout = subprocess.PIPE, # subprocess.PIPE & subprocess.PIPE are alias of 'capture_output = True' - stderr = subprocess.PIPE, - universal_newlines = True, # Alias of 'text = True' - shell = True - ) - - print('fuser: \n' + str(result.stdout)) - raise Exception('could not update apt cache: ' + str(e)) try: