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

[FIX] 16/17: Proper ~root/.ssh pre-removal #588

Merged

Conversation

manuel-florido
Copy link
Contributor

Hello,

I found that the symlink to /opt/odoo/custom/ssh still being created as sub-directory (/root/.ssh/ssh) so I got an error when I tried to build my Odoo image.

Docker uses "/bin/sh" as default shell and "[[ ]]" is a specific comparison construct of Bash.

I remove the brackets and now the symlinks to /opt/odoo/custom/ssh is being created succesfully.

Issue origin: #585

@pedrobaeza

@pedrobaeza
Copy link
Member

Great, thanks for the fix.

Good point using a regexp for indicating the versions, but better to be explicit and as brackets are used for separators, it seems weird that way. Please rephrase it to [FIX] 16/17: Proper ~root/.ssh pre-removal, and you can put as extra commit message lines the explanation given in this PR.

@manuel-florido manuel-florido changed the title [FIX]1[67]: Check if '~root/.ssh' is created [FIX] 16/17: Proper ~root/.ssh pre-removal Nov 22, 2023
@manuel-florido
Copy link
Contributor Author

manuel-florido commented Nov 22, 2023

Done 👌

Thank you!

@pedrobaeza

@pedrobaeza
Copy link
Member

The explanation given in the first comment of the PR (which is pretty good) has not been put in the commit message. It's also better to use a neutral redaction avoiding first person. Something like:

[FIX] 16/17: Proper ~root/.ssh pre-removal

The symlink to /opt/odoo/custom/ssh is still being created as sub-directory 
(/root/.ssh/ssh), getting an error when trying to build the Doodba image.

Docker uses "/bin/sh" as default shell and "[[ ]]" is a specific comparison
construct of Bash.

Removing the brackets, now the symlinks to /opt/odoo/custom/ssh are being
successfully created.

The symlink to /opt/odoo/custom/ssh is still being created as sub-directory
(/root/.ssh/ssh), getting an error when trying to build the Doodba image.

Docker uses '/bin/sh' as default shell and '[[ ]]' is a specific comparison
construct of Bash.

Removing the brackets, now the symlinks to /opt/odoo/custom/ssh are being
successfully created.
@manuel-florido
Copy link
Contributor Author

Hello,

Sorry I did not understand you at the first time.

Now it is done 👍 .

Thank you!

@pedrobaeza

Copy link
Contributor

@ap-wtioit ap-wtioit left a comment

Choose a reason for hiding this comment

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

Good catch.

@pedrobaeza pedrobaeza merged commit 9a3143b into Tecnativa:master Nov 23, 2023
6 checks passed
@HaraldPanten HaraldPanten deleted the fix-private_repo_autoaggregate branch November 23, 2023 09:23
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.

3 participants