Project

General

Profile

Actions

User story #3343

closed

Installation script should check if launched in bash

Added by Arthur ANGLADE over 11 years ago. Updated almost 7 years ago.

Status:
Rejected
Priority:
3
Assignee:
-
Category:
Packaging
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

the installation script works on bash; if launched by "sh .......blahlah.sh", shouldn't it be detected and relaunched under bash ?

Actions #1

Updated by Matthieu CERDA over 11 years ago

  • Status changed from New to Discussion
  • Assignee changed from Matthieu CERDA to Jonathan CLARKE
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.

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)/ ...

Actions #2

Updated by Matthieu CERDA over 11 years ago

Wnat should we do then ?

Actions #3

Updated by Nicolas PERRON over 11 years ago

  • Target version changed from 2.6.0~beta1 to 2.6.0~rc1
Actions #4

Updated by Matthieu CERDA over 11 years ago

  • Target version changed from 2.6.0~rc1 to 2.6.0
Actions #5

Updated by Jonathan CLARKE over 11 years ago

  • Target version changed from 2.6.0 to 2.6.1
Actions #6

Updated by Nicolas PERRON over 11 years ago

  • Target version changed from 2.6.1 to 2.6.2
Actions #7

Updated by Nicolas PERRON over 11 years ago

  • Target version changed from 2.6.2 to 2.6.3
Actions #8

Updated by Nicolas PERRON over 11 years ago

  • Target version changed from 2.6.3 to 2.6.4
Actions #9

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.

Actions #10

Updated by Nicolas PERRON about 11 years ago

  • Target version changed from 2.6.4 to Ideas (not version specific)
Actions #11

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 :)

Actions #12

Updated by Benoît PECCATTE over 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions #13

Updated by Benoît PECCATTE over 9 years ago

  • Status changed from 8 to New
Actions #14

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

Actions

Also available in: Atom PDF