|
@@ -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
|