File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 188
188
sed -i " s/fledge$/fledge (${fledge_version} )/" ${deb_path} /control
189
189
sed -i " s|__INSTALL_DIR__|${installs} |g" ${deb_path} /postinst
190
190
sed -i " s/__PLUGIN_NAME__/${plugin_name} /g" ${deb_path} /postinst
191
+ sed -i " s/__PLUGIN_TYPE__/${plugin_type_install} /g" ${deb_path} /postinst
191
192
desc=` cat " ${GIT_ROOT} /Description" `
192
193
sed -i " s/__DESCRIPTION__/${desc} /g" ${deb_path} /control
193
194
if [ ! -z " ${service_notification_version} " ] ; then
232
233
fi
233
234
# plugin info version replaced in ${plugin_name}.py
234
235
sed -i " s/'version':.*$/'version': '${version} ',/g" ${GIT_ROOT} /python/fledge/plugins/${plugin_type} /${plugin_name} /${plugin_name} .py
236
+ # Move python requirements to the plugin installed directory
237
+ if [ -f " ${GIT_ROOT} /python/requirements-${plugin_name} .txt" ]; then
238
+ mv ${GIT_ROOT} /python/requirements-${plugin_name} .txt ${GIT_ROOT} /${installs} /requirements.txt
239
+ fi
235
240
cp -R ${GIT_ROOT} /python .
236
241
cp -R ${GIT_ROOT} /VERSION.${plugin_type} .${plugin_name} ./python/fledge/plugins/${plugin_type} /${plugin_name}
237
242
else
Original file line number Diff line number Diff line change @@ -38,12 +38,11 @@ if [ -f /usr/local/fledge/python/extras_install___PLUGIN_NAME__.sh ]; then
38
38
sh /usr/local/fledge/python/extras_install___PLUGIN_NAME__.sh
39
39
fi
40
40
41
- # Install Python dependencies; if any
42
- if [ -f /usr/local/fledge/python /requirements-__PLUGIN_NAME__ .txt ]; then
43
- pip3 install -Ir /usr/local/fledge/python /requirements-__PLUGIN_NAME__ .txt
41
+ # Install Python pip dependencies; if any
42
+ if [ -f /usr/local/fledge/__INSTALL_DIR__ /requirements.txt ]; then
43
+ pip3 install -Ir /usr/local/fledge/__INSTALL_DIR__ /requirements.txt
44
44
fi
45
-
46
- echo __PLUGIN_NAME__ plugin is installed.
45
+ echo __PLUGIN_NAME__ __PLUGIN_TYPE__ plugin is installed.
47
46
echo "
48
47
__PLUGIN_NOTES__
49
48
"
You can’t perform that action at this time.
0 commit comments