Add postinstall script to debian package for telemetry notification

This commit is contained in:
Dan Quirk 2016-04-02 02:07:16 +00:00 committed by Daniel Quirk
parent 49fae29b7b
commit 561f856e36
3 changed files with 16 additions and 0 deletions

View file

@ -152,6 +152,7 @@ package_all(){
package_absolute_placement
package_samples
package_docs
package_debian
}
generate_all(){
@ -216,6 +217,12 @@ package_docs(){
fi
}
package_debian(){
if [[ -d "$ABSOLUTE_PLACEMENT_DIR" ]]; then
cp "$ABSOLUTE_PLACEMENT_DIR/postinst" $DEBIAN_DIR/postinst
fi
}
## Generation Functions ##
generate_config_templates(){
python ${SCRIPT_DIR}/scripts/config_template_generator.py $CONFIG $SCRIPT_DIR/templates/debian $DEBIAN_DIR $PACKAGE_NAME $PACKAGE_VERSION