-
-
Notifications
You must be signed in to change notification settings - Fork 782
Packaging: expand DEBHELPER in deb maintainer scripts and macros in rpm scriptlets #6319
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
Changes from all commits
f0af1fe
cd82f30
9c0b25d
fb75e69
63e3f56
f1e5d15
e189d12
fd6de4f
10ff255
ac7297b
1f503a9
fae9319
775b902
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| shell_sources(skip_shellcheck=True) | ||
| shell_sources() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| shell_sources(skip_shellcheck=True) | ||
| shell_sources() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # This %pre scriptlet gets one argument, $1, the number of packages of | ||
|
|
@@ -6,11 +7,11 @@ set -e | |
| # * on upgrade: $1 > 1 | ||
| # https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax | ||
|
|
||
| PACKS_GROUP=%{packs_group} | ||
| SYS_USER=%{stanley_user} | ||
| ST2_USER=%{svc_user} | ||
|
Comment on lines
-9
to
-11
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These macros were defined in The equivalent hard-coded values were already embedded in the deb maintainer scripts, so, this does not change anything. It only inlines the values for rpm. |
||
| PACKS_GROUP=st2packs | ||
| SYS_USER=stanley | ||
| ST2_USER=st2 | ||
|
|
||
| ## Create stackstorm users and groups (differs from debian) | ||
| ## Create stackstorm users and groups (adduser differs from debian) | ||
| create_users() { | ||
| # create st2 user (services user) | ||
| (id $ST2_USER 1>/dev/null 2>&1) || | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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 debated removing this now. I left a TODO for now. I think we should wait to remove it until we can actually test the built rpms.
This does not come from upstream. We defined it in st2-packages.git: https://github.com/StackStorm/st2-packages/blob/6c81c2e8e1c1e0f0ec0132c74c1f67730f6b9bf8/rpmspec/helpers.spec#L84-L90