-
Notifications
You must be signed in to change notification settings - Fork 41
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
Unbuntu Core - configure hook, extensions registration, and folders owner/user changes #266
Conversation
- Use snapcraft environment vars in snapcraft.yaml - Update doc - Remove install and post-refresh hooks - Update configure hook to setup dirs and register extensions - Create extension registration dirs using current user id and group id.
- Add 'home' interface to the snap - Update document - Disable the Agent's 'command' support
- calling /usr/bin/curl-downloader (symlink to $SNAP/usr/bin/curl) for file download - change ADUC_FILE_USER to 'root'
```sh | ||
snap run --shell deviceupdate-agent | ||
```shell | ||
$ cp <home-dir>/du-config.json $SNAP_DATA/config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used vi
, but a little unsure about the cp
here. Is it run inside the device-update snap shell? how do we specify the ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this should be run inside the snap shell. Customer can choose their preferred method to author the du-config.json. As long as it is placed in the right location ($SNAP_DATA/config/du-config.json)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with one comment
Changes
snap
environment (executing curl from $SNAP/usr/bin/curl)