Skip to content

Commit 6164dce

Browse files
Merge pull request #46 from foglamp/FOGL-3090
FOGL-3090 install notes added for make_deb plugins
2 parents 91a18a1 + 05e71fd commit 6164dce

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

plugins/make_deb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,21 @@ do
191191
if [ ! -z "${service_notification_version}" ] ; then
192192
sed -i "s/foglamp-service-notification/foglamp-service-notification (${service_notification_version})/" ${deb_path}/control
193193
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
194209

195210
# Creating packaging file structure
196211
mkdir -p usr/local/foglamp

plugins/packages/DEBIAN/postinst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ if [ -f /usr/local/foglamp/python/requirements-__PLUGIN_NAME__.txt ]; then
4444
fi
4545

4646
echo __PLUGIN_NAME__ plugin is installed.
47+
echo "
48+
__PLUGIN_NOTES__
49+
"

0 commit comments

Comments
 (0)