Bug #34834
opensalt_python_wrapper not working in Debian bullseye
Description
Executing /usr/bin/salt_python_wrapper
fails in a Debian bullseye Docker container which is the shebang of script ./github.com/smart_proxy_salt/sbin/upload-salt-reports
:
root@a3c096f51e5f:/usr/bin# ./salt_python_wrapper
./salt_python_wrapper: 8: -p:: not found
./salt_python_wrapper: 8: -p:: not found
No usable python version found, check if python or python3 can import salt.config!
/bin/sh
is a symlink to dash
and its type
command seems not to have the -p
parameter. Changing the shebang from #!/bin/sh
to #!/bin/bash
would fix it. Is there a specific reason to use #!/bin/sh
?
And one question: In my Docker container I install Ruby gem smart_proxy_salt
after cloning the GitHub repository https://github.com/theforeman/smart_proxy_salt.git. Then I find salt_python_wrapper at ./github.com/smart_proxy_salt/bin/salt_python_wrapper
and need to copy it manually to /usr/bin/salt_python_wrapper
. Is there a way to automate this or is this step mentioned in the docs somewhere?
No data to display