ipsec: Only set PATH if it is not already set

The comment indicated this but it was always set anyway.  All internal
commands are called via their absolute paths, so the script only uses PATH for
the uname command, but if that is not located in one of the configured
directories the script will fail.

Also, since the internal commands are called via their absolute paths there is
no need to add the directories to PATH.
This commit is contained in:
Tobias Brunner 2014-09-30 13:52:39 +02:00
parent d52b8738b5
commit 249aa67f87
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
# for more details.
# define a minimum PATH environment in case it is not set
PATH="/sbin:/bin:/usr/sbin:/usr/bin:@IPSEC_SBINDIR@:@IPSEC_BINDIR@"
PATH=${PATH:-"/sbin:/bin:/usr/sbin:/usr/bin"}
export PATH
# set daemon name