File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 191
191
if [ ! -z " ${service_notification_version} " ] ; then
192
192
sed -i " s/foglamp-service-notification/foglamp-service-notification (${service_notification_version} )/" ${deb_path} /control
193
193
fi
194
+ # install notes
195
+ if [ -f " ${GIT_ROOT} /install_notes.txt" ]; then
196
+ cat > /tmp/sed.script.$$ << EOF
197
+ /__PLUGIN_NOTES__/ {
198
+ r ${GIT_ROOT} /install_notes.txt
199
+ d
200
+ }
201
+ EOF
202
+ sed -i -f /tmp/sed.script.$$ ${deb_path} /postinst
203
+ rm /tmp/sed.script.$$
204
+ else
205
+ sed -i " s/echo \" /" " /g" ${deb_path} /postinst
206
+ sed -i " s/__PLUGIN_NOTES__/" " /g" ${deb_path} /postinst
207
+ sed -i " s/\" /" " /g" ${deb_path} /postinst
208
+ fi
194
209
195
210
# Creating packaging file structure
196
211
mkdir -p usr/local/foglamp
Original file line number Diff line number Diff line change @@ -44,3 +44,6 @@ if [ -f /usr/local/foglamp/python/requirements-__PLUGIN_NAME__.txt ]; then
44
44
fi
45
45
46
46
echo __PLUGIN_NAME__ plugin is installed.
47
+ echo "
48
+ __PLUGIN_NOTES__
49
+ "
You can’t perform that action at this time.
0 commit comments