#!/bin/bash
# additional installation steps for TurboPrint
# that can't be executed during DEB/RPM installation

##
# get TurboPrint configuration
##

eval $(cat /etc/turboprint/system.cfg)
LOGFILE="$TPPATH_LOG/turboprint/install.log"
echo "install-post-rpm started $(date)" >> "$LOGFILE"

# Unity appicon - install package required for python to access Gtk
# problem: this doesn't work within deb installation (dpkg lock)
type apt-get &> /dev/null && apt-get -q -y install python-gobject 2>&1 >> $LOGFILE

echo "install-post-rpm finished $(date)" >> "$LOGFILE"
echo "#######################################################" >> "$LOGFILE"

echo "RESULT 0"
exit 0

