fix: missing operation file c8y-remote-access-plugin when installed on Alpine Linux#3669
Merged
reubenmiller merged 1 commit intothin-edge:mainfrom Jun 5, 2025
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
90d0c5a to
09f7083
Compare
Contributor
Robot Results
|
On Alpine Linux, if a package does not contain a file, the maintainer scripts won't be executed, which results in the c8y_RemoteAccessConnect not being created under the expected operations folder. Resolves thin-edge#3667 Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
09f7083 to
c5d1ae2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Fix an issue where the c8y-remote-access-plugin's maintainer scripts are not executed on Alpine Linux due to the apk package only containing a post-installation script (no actual files) which calls the
c8y-remote-access-plugin --initwhich creates the required operation handler file. This resulted in the Remote Access not appearing in Cumulocity as the operation definition was missing.To avoid this problem, the
c8y_RemoteAccessConnectoperation definition is being added to each of the linux packages (for consistency across deb, rpm and apk), to avoid this problem. The init command can still be run as it can correct any potential file ownership issues that may have changed over time on the user's device.Types of changes
Paste Link to the issue
#3667
Checklist
just prepare-devonce)just formatas mentioned in CODING_GUIDELINESjust checkas mentioned in CODING_GUIDELINESFurther comments