zerotier: make sure the /var/lib exists 9937/head
authorMoritz Warning <moritzwarning@web.de>
Sun, 8 Sep 2019 15:18:47 +0000 (17:18 +0200)
committerMoritz Warning <moritzwarning@web.de>
Sun, 8 Sep 2019 23:28:32 +0000 (01:28 +0200)
Signed-off-by: Moritz Warning <moritzwarning@web.de>
net/zerotier/files/etc/init.d/zerotier

index dacb47c09a54a0af7bd08cbdbf4fd4d69ec72b2f..c308b4246ee53ffd45aff5b11a5cfa93743dd26c 100755 (executable)
@@ -39,6 +39,9 @@ start_instance() {
                        return
                fi
 
+               # ensure that the symlink target exists
+               mkdir -p $(dirname $path)
+
                ln -s $config_path $path
        fi