User story #3343
closedInstallation script should check if launched in bash
Added by Arthur ANGLADE over 11 years ago. Updated almost 7 years ago.
Description
the installation script works on bash; if launched by "sh .......blahlah.sh", shouldn't it be detected and relaunched under bash ?
Updated by Matthieu CERDA over 11 years ago
- Status changed from New to Discussion
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- Stop calling this script rudder-init.sh, should be rudder-init without extension. It confuses some users and .bash is not a very common extension ... Also, on UNIX .sh is not really useful.
- Make the documentation more clear.
I do not think that some detection logic should be added on the script, as current interpreter detection is either not portable/not reliable/full of traps (/bin/sh symlinked to bash on lots of systems)/ ...
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.6.0~beta1 to 2.6.0~rc1
Updated by Matthieu CERDA over 11 years ago
- Target version changed from 2.6.0~rc1 to 2.6.0
Updated by Jonathan CLARKE over 11 years ago
- Target version changed from 2.6.0 to 2.6.1
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.6.1 to 2.6.2
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.6.2 to 2.6.3
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.6.3 to 2.6.4
Updated by Jonathan CLARKE over 11 years ago
- Assignee changed from Jonathan CLARKE to Matthieu CERDA
Matthieu CERDA wrote:
After some thinking, some ideas I got:
- Stop calling this script rudder-init.sh, should be rudder-init without extension. It confuses some users and .bash is not a very common extension ... Also, on UNIX .sh is not really useful.
- Make the documentation more clear.
Agreed.
I do not think that some detection logic should be added on the script, as current interpreter detection is either not portable/not reliable/full of traps (/bin/sh symlinked to bash on lots of systems)/ ...
OK.
Updated by Nicolas PERRON about 11 years ago
- Target version changed from 2.6.4 to Ideas (not version specific)
Updated by Matthieu CERDA almost 11 years ago
- Status changed from Discussion to 8
- Assignee deleted (
Matthieu CERDA)
Unable to do doc at the moment, I'm leaving this for someone else :)
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging
Updated by Benoît PECCATTE almost 7 years ago
- Status changed from New to Rejected
rudder-init has the following shebang
#!/bin/bash
No detection is needed