*-{up,down} env vars

Guus Sliepen guus at tinc-vpn.org
Fri Dec 13 23:33:26 CET 2013


On Fri, Dec 13, 2013 at 11:31:27PM +0100, Guus Sliepen wrote:

> > is this correct?  shouldn't tinc run scripts with a path relative to
> > its configuration? :)
> 
> It might indeed be nice to run the scripts with the working directory set to
> the configuration directory. I don't think there is any argument against that.
> In the mean time, the workaround is to call the following at the top of your
> scripts:
> 
> cd `basename $0`

Oops, I meant:

cd `dirname $0`

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20131213/083631b7/attachment.sig>


More information about the tinc mailing list