Downloaded version of virt-who configure script is not compatible with rhel6
|Triaged:||Fixed in Releases:|
|Bugzilla link:||1491450||Found in Releases:|
|Pull request:||https://github.com/theforeman/foreman_virt_who_configure/pull/65, https://github.com/theforeman/foreman_virt_who_configure/pull/70|
Description of problem:
When using the "Download the script" button the script using the shebang
This works on RHEL7 but not on RHEL6.
Version-Release number of selected component (if applicable):
How reproducible: Always
Steps to Reproduce:
1. Create virt-who config using plugin
2. Use "download the script" option to say the script to a file.
3. Copy the script to a RHEL6 box, chmod +x it and run it
[root@ibm-x3250m4-04 ~]# ./deploy_virt_who_config_2.sh
-bash: ./deploy_virt_who_config_2.sh: /usr/bin/bash: bad interpreter: No such file or directory
The script executes correctly
Additional info: In rhel7 /bin is a symlink to /usr/bin. So a simple fix would be to change the hash bang to /bin and this should work on both.
#3 Updated by Marek Hulán 10 months ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_virt_who_configure|fab24745820ddc3eb1b9390a9b2a8d80b0296804.