From 2480ea6b05087a3832732d2f1dd4a1c15ee6a7ba Mon Sep 17 00:00:00 2001 From: j Date: Fri, 10 Aug 2018 11:59:56 +0100 Subject: [PATCH] symlink subfolder --- install.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.py b/install.py index 592b6d9..76da228 100755 --- a/install.py +++ b/install.py @@ -12,12 +12,21 @@ os.chdir(base) for root, folders, files in os.walk(join(base, 'static')): for f in files: src = join(root, f) + if 'ontology/' in src: + continue target = src.replace(base, '/srv/pandora') rel_src = os.path.relpath(src, dirname(target)) if os.path.exists(target): os.unlink(target) os.symlink(rel_src, target) +src = join(base, 'static', 'ontology') +target = src.replace(base, '/srv/pandora') +rel_src = os.path.relpath(src, dirname(target)) +if os.path.exists(target): + os.unlink(target) +os.symlink(rel_src, target) + os.chdir(base) src = join(base, 'config.jsonc') target = '/srv/pandora/pandora/config.%s.jsonc' % name