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

Set 'setKey' and 'webpwd' in debian postinst script only on new installations. #436

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

herrwagner
Copy link

Change debian postinst scripts to run some shell commands for setting 'setKey' and 'webpwd' parameter only if no weakforce is already installed (or configurations are left). This is necessary because running these commands if weakforce is already runnig they will fail and upgrading exits with failure.
postinst maintainer script is only run without additional arguments beside 'configure' if it's a new installation.
See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#summary-of-ways-maintainer-scripts-are-called

Change debian postinst scripts to run some shell commands for setting
'setKey' and 'webpwd' parameter only if no weakforce is already installed
(or configurations are left). This is necessary because running these
commands if weakforce is already runnig they will fail and upgrading
exits with failure.
postinst maintainer script is only run _without_ additional arguments
beside 'configure' if it's a new installation.
See https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#summary-of-ways-maintainer-scripts-are-called
@neilcook
Copy link
Collaborator

Would it be possible for you to look into adding these checks also for spec-file based packages?

Copy link

Test Results

  2 files  ±0    2 suites  ±0   32m 19s ⏱️ +9s
 70 tests ±0   70 ✅ ±0  0 💤 ±0  0 ❌ ±0 
140 runs  ±0  140 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b08a6ad. ± Comparison against base commit c1a356f.

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.

2 participants