aboutsummaryrefslogtreecommitdiffstats
path: root/community/anytun/anytun.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/anytun/anytun.initd')
-rw-r--r--community/anytun/anytun.initd3
1 files changed, 1 insertions, 2 deletions
diff --git a/community/anytun/anytun.initd b/community/anytun/anytun.initd
index 0767a73802..d831feb348 100644
--- a/community/anytun/anytun.initd
+++ b/community/anytun/anytun.initd
@@ -56,8 +56,7 @@ stop_vpn () {
start_configd () {
if [ -d $CONFIG_DIR/$NAME/conf.d ] ; then
- test -d $VARCONFIG_DIR || mkdir -p $VARCONFIG_DIR
- chmod 700 $VARCONFIG_DIR
+ test -d $VARCONFIG_DIR && chmod 700 $VARCONFIG_DIR || checkpath -d -m 0700 $VARCONFIG_DIR
rm -f $VARCONFIG_DIR/$NAME 2>/dev/null
KDPRF=`sed 's/#.*//' < $CONFIG_DIR/$NAME/config | grep -e 'kd-prf' | sed 's/^/ --/' | xargs echo`
for CLIENTPATH in $CONFIG_DIR/$NAME/conf.d/* ; do