#!/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"
echo "Completing TurboPrint installation..."
echo "PROGRESS 80"
sleep 1
echo "PROGRESS 90"
sleep 1

# 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 "PROGRESS 100"
echo "RESULT 0"
exit 0

