Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docker/ubuntu/nightswatcher/nightswatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def sha256sum(path):
except FileNotFoundError:
sha256 = hashlib.sha256(path.read_bytes()).hexdigest()
sha256path(path).write_text(f'{sha256} {path.name}\n', encoding='utf-8')
sha256path(path).chmod(0o444)
return sha256

def fetch(url, expected_sha256):
Expand Down Expand Up @@ -138,6 +139,7 @@ def __str__(self):
def cp(src, dst):
logger.debug('cp %s %s', src, dst)
shutil.copy(src, dst)
Path(dst).chmod(0o644)

def rm(path):
logger.debug('rm %s', path)
Expand Down Expand Up @@ -304,7 +306,6 @@ def on_post(self, req, _resp):
self._ota_update_debounce = None
self._ota_update_debounce = gevent.spawn_later(self.OTA_UPDATE_DEBOUNCE_DELAY, lambda: update_queue.put(release))
elif release['tag_name'] != 'ota' and data['action'] == 'published':
Path('body.json').write_bytes(body)
update_queue.put(release)


Expand Down
2 changes: 1 addition & 1 deletion docker/ubuntu/nightswatcher/settings.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 2.0.0
VERSION = 2.1.0

IMAGE_BASE = docker.io/library/ubuntu:24.04
IMAGE_PLATFORM = arm64 x86_64
Expand Down
Loading