Skip to content

Commit

Permalink
Make it possible to run katello-ssl-tool concurrently for different…
Browse files Browse the repository at this point in the history
… hosts

The use of a postrun script file in a "shared" location made it impossible before this fix.

```
Traceback (most recent call last):
File "/bin/katello-ssl-tool", line 11, in <module>
load_entry_point('Katello-Certs-Tools==2.9.0', 'console_scripts', 'katello-ssl-tool')()
File "/usr/lib/python3.6/site-packages/katello_certs_tools/katello_ssl_tool.py", line 955, in main
_main()
File "/usr/lib/python3.6/site-packages/katello_certs_tools/katello_ssl_tool.py", line 924, in _main
genServerRpm(DEFS, options.verbose)
File "/usr/lib/python3.6/site-packages/katello_certs_tools/katello_ssl_tool.py", line 828, in genServerRpm
os.unlink(postun_scriptlet)
FileNotFoundError: [Errno 2] No such file or directory: '/root/ssl-build/postun.scriptlet'
```
  • Loading branch information
pablomh authored and ehelms committed Feb 22, 2024
1 parent ae06319 commit 2210541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion katello_certs_tools/katello_ssl_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def genServerRpm(d, verbosity=0):

server_cert_dir = d['--server-cert-dir']

postun_scriptlet = os.path.join(d['--dir'], 'postun.scriptlet')
postun_scriptlet = os.path.join(d['--dir'], d['--set-hostname'], 'postun.scriptlet')

genServerRpm_dependencies(d)

Expand Down

0 comments on commit 2210541

Please sign in to comment.