File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 246
246
fi
247
247
mkdir -p build; cd build; cmake ..; make)
248
248
mkdir -p " plugins/${plugin_type_install} /${plugin_install_dirname} "
249
+ if [ -f " ${GIT_ROOT} /extras_install.sh" ]; then
250
+ sed -i " s/sudo//" ${GIT_ROOT} /extras_install.sh
251
+ cp -p ${GIT_ROOT} /extras_install.sh plugins/${plugin_type_install} /${plugin_install_dirname} /extras_install.sh
252
+ fi
249
253
cp -R --preserve=links ${GIT_ROOT} /build/lib* " plugins/${plugin_type_install} /${plugin_install_dirname} " 2> /dev/null || \
250
254
cp -R --preserve=links ${GIT_ROOT} /* .json " plugins/${plugin_type_install} /${plugin_install_dirname} " 2> /dev/null || \
251
255
echo " Unable to find libraries in ${GIT_ROOT} /build and json config files in ${GIT_ROOT} , cannot proceed..."
Original file line number Diff line number Diff line change @@ -34,15 +34,23 @@ set_files_ownership () {
34
34
set_files_ownership
35
35
36
36
# Install Prerequisite; if any
37
+
38
+ # For Python based plugins
37
39
if [ -f /usr/local/fledge/python/extras_install___PLUGIN_NAME__.sh ]; then
38
40
sh /usr/local/fledge/python/extras_install___PLUGIN_NAME__.sh
39
41
fi
40
-
41
42
# Install Python pip dependencies; if any
42
43
if [ -f /usr/local/fledge/__INSTALL_DIR__/requirements.txt ]; then
43
44
pip3 install -Ir /usr/local/fledge/__INSTALL_DIR__/requirements.txt
44
45
fi
46
+
47
+ # For C based plugins
48
+ if [ -f /usr/local/fledge/__INSTALL_DIR__/extras_install.sh ]; then
49
+ ./usr/local/fledge/__INSTALL_DIR__/extras_install.sh
50
+ fi
51
+
45
52
echo __PLUGIN_NAME__ __PLUGIN_TYPE__ plugin is installed.
53
+
46
54
echo "
47
55
__PLUGIN_NOTES__
48
56
"
You can’t perform that action at this time.
0 commit comments