Browse Source

Bugfix on regression caused by previous bugfix

Previous bugfix on runtest & create instance brokes deployment, now both seems to work fine
Yann Weber 8 years ago
parent
commit
df8a088024
2 changed files with 4 additions and 3 deletions
  1. 3
    2
      progs/create_instance.sh
  2. 1
    1
      runtest.sh

+ 3
- 2
progs/create_instance.sh View File

@@ -10,9 +10,10 @@ loader_update() {
10 10
 	libdir=$1
11 11
 	install_tpl=$2
12 12
 	instdir=$3
13
+	lib_abs_path=$(dirname $libdir)
13 14
 	cp -Rv $install_tpl/loader.py $instdir/loader.py
14 15
 	# Adding lib path to loader
15
-	sed -i -E "s#^(LODEL2_LIB_ABS_PATH = )None#\1'$libdir'#" "$instdir/loader.py"
16
+	sed -i -E "s#^(LODEL2_LIB_ABS_PATH = )None#\1'$lib_abs_path'#" "$instdir/loader.py"
16 17
 }
17 18
 
18 19
 
@@ -87,7 +88,7 @@ cp -Rv $install_tpl/conf.d $instdir/
87 88
 cp -Rv $em_file $instdir/editorial_model.pickle
88 89
 ln -sv $install_tpl/Makefile $instdir/Makefile
89 90
 ln -sv $install_tpl/lodel_admin.py $instdir/lodel_admin.py
90
-ln -sv $libdir/lodel/plugins $instdir/plugins
91
+ln -sv $libdir/plugins $instdir/plugins
91 92
 loader_update "$libdir" "$install_tpl" "$instdir"
92 93
 
93 94
 # Adding instance name to conf

+ 1
- 1
runtest.sh View File

@@ -59,7 +59,7 @@ if [ ! -d "$install_model_dir" ]
59 59
 then
60 60
 	install_model_dir="$(dirname $0)/progs/slim/install_model/"
61 61
 fi
62
-libdir=$(realpath "$(dirname $0)")
62
+libdir="$(dirname $(realpath $0))/lodel"
63 63
 rmdir $testdir
64 64
 ./progs/create_instance test_instance $testdir "$install_model_dir" ./examples/em_test.pickle "$libdir"
65 65
 echo ./progs/create_instance test_instance $testdir "$install_model_dir" ./examples/em_test.pickle "$libdir"

Loading…
Cancel
Save