-
Notifications
You must be signed in to change notification settings - Fork 29
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
migrate to new user/group name #475
Conversation
check whether it still need to keep compat_package_dir in fixperms. |
8b75318
to
c12c4b4
Compare
This PR is focus on deb only. |
UID/GID migration was verified with:
|
Checking failure. |
Unexpectedly exception was raised during install fluentd-apt-source. 🤔
|
c12c4b4
to
47ecb58
Compare
47ecb58
to
1fa1d03
Compare
7b910a3
to
79f04d5
Compare
Fixing migration failure with already starting service. |
b3faff9
to
8f120c9
Compare
Still checking... |
8f120c9
to
ac24426
Compare
just rebased with recent master. |
fluent-package/templates/package-scripts/fluent-package/deb/postinst
Outdated
Show resolved
Hide resolved
fluent-package/templates/package-scripts/fluent-package/deb/postinst
Outdated
Show resolved
Hide resolved
ac24426
to
062d452
Compare
It requires #492 for Windows CI. |
d8efa35
to
538973c
Compare
Rebased because #492 was merged. |
538973c
to
331e459
Compare
/var/run/td-agent statoveride configuration was removed.
|
NOTE need to fix CI. |
3de97a8
to
10d864c
Compare
Fixed remaining old statoverride for /var/run/td-agent. |
For debian & ubuntu, I confirmed all issues that I found have been fixed. Thanks!
|
I'll check again. |
10d864c
to
45b7b29
Compare
for deb, according Debian policy, dynamically allocated name should be prefixed with an underscore. (It may be not applicable for group name, but there is an prefixed group name example e.g. _ssh/_cvsadmin) See https://www.debian.org/doc/debian-policy/ch-opersys.html#introduction Note that adduser doesn't accept _name prefix by default. To avoid it, we need to specify --force-badname explicitly * migration from to td-agent to _fluentd * service, hook script, tmpfiles.d and so on. * cleanup td-agent statoverride For rpm, no prefixed underscore for user/group name. * migration from td-agent to fluentd * service, hook script, tmpfiles.d, permission and so on. * cleanup user/group on removing package Signed-off-by: Kentaro Hayashi <[email protected]>
Signed-off-by: Kentaro Hayashi <[email protected]>
Signed-off-by: Kentaro Hayashi <[email protected]>
Signed-off-by: Kentaro Hayashi <[email protected]>
Signed-off-by: Kentaro Hayashi <[email protected]>
45b7b29
to
2485469
Compare
Fixed remained user/group issue. |
waiting CI |
Upgrade from v4:
Removed:
|
I confirmed that RPM related issues are resolved, Thanks! Although td-agent user is remained when I remove td-agent manually before upgrading to fluent-package, it's not fluent-package's issue, it's current td-agent's issue (it doesn't remove td-agent user on uninstallation). |
Thanks!! |
for deb, according Debian policy, dynamically allocated name should be prefixed
with an underscore.
(It may be not applicable for group name, but there is an prefixed
group name example e.g. _ssh/_cvsadmin)
See
https://www.debian.org/doc/debian-policy/ch-opersys.html#introduction
Note that adduser doesn't accept _name prefix by default. To avoid
it, we need to specify --force-badname explicitly
For rpm, no prefixed underscore for user/group name.