OVH Community, your new community space.

Passing variables to post installation


K.Kode
07-02-2013, 15:10
try URL encoding the spaces with %20

tekmobile
07-02-2013, 00:14
Quote Originally Posted by LawsHosting
just call them with $1, $2, etc

so, eg. myscript.sh hello hi bye

$1 = hello
$2 = hi
$3 = bye
I already have the scripts what I use with the variables $1, $2 etc but when I add the url address for my post processing script to the installation

(I forgot what happens)

the script either downloads to the server but fails due to not having the required variables passed and requires running manually after installation or I am unable to add the url with the variables due to the whitespaces.

LawsHosting
06-02-2013, 20:38
just call them with $1, $2, etc

so, eg. myscript.sh hello hi bye

$1 = hello
$2 = hi
$3 = bye

tekmobile
06-02-2013, 12:42
It is possible to pass variables to post installation scripts for example

http://www.mysite.com/setup.sh somevar

thanks