#! /bin/sh -e

if [ -f /opt/theme-customizer/cssuinstalled ]; then
	rm -rf /opt/theme-customizer/cssuinstalled
fi

if dpkg -l | grep mp-fremantle-community-pr > /dev/null
then

	echo "1" > /opt/theme-customizer/cssuinstalled

fi

/opt/theme-customizer/theme-customizer2

if [ -f /opt/theme-customizer/cssuinstalled ]; then
	rm -rf /opt/theme-customizer/cssuinstalled
fi

exit 0
