Skip to content

Commit

Permalink
Add cronyd hack
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Jul 30, 2023
1 parent 6c46356 commit 37b3b8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
- Manually check all envs
- Add url of the localhost server to the spec only in dev env
- Post request confirmation flow
- Remove text body parsers? (chatGPT doesn't play well with plain text body)

> we can change the API for the plugins whenever we want - we don't need to think about backward compatibility that much because the API is understood again everytime the plugin is used.
8 changes: 8 additions & 0 deletions src/sessions/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ export class CachedSession {
this.cacheID = customCacheID || id
sessionCache.set(this.cacheID, this)

// Temporary hack to fix the clock drift issue for Alpine Linux
this.session.filesystem?.write('/etc/chrony/chrony.conf', `initstepslew 0.5 pool.ntp.org
makestep 0.5 -1`).then(() => {
this.startProcess({
cmd: `rc-service chronyd restart`,
})
})

return this
}

Expand Down

0 comments on commit 37b3b8e

Please sign in to comment.