Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ClockSync] add support for linux root users #319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

techfreaque
Copy link
Contributor

@techfreaque techfreaque commented Feb 5, 2023

edit: removed the docker changes as its not working

@@ -39,11 +39,13 @@ def _get_sync_cmd(self):
platform = os_util.get_os()
bot_type = os_util.get_octobot_type()
if bot_type == commons_enums.OctoBotTypes.DOCKER.value:
raise NotImplementedError(bot_type)
return "service ntp stop && ntpd -gq && service ntp start"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no ntp service in the current octobot docker image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it to the dockerfile as well see PR in octobot -> [Docker] add ntp to docker version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should add ntp service in docker based on this thread: https://stackoverflow.com/questions/24551592/how-to-make-sure-dockers-time-syncs-with-that-of-the-host

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah crap, I removed the docker part, now only the linux root fix is included

@techfreaque techfreaque changed the title [ClockSync] add support for linux root users and docker [ClockSync] add support for linux root users Mar 3, 2023
Copy link
Member

@Herklos Herklos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GuillaumeDSM I let your merge it when it's ok for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants