View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#7
flotron, you can do something like this:
1. Download Theme settings and put this app to your package, for example: /home/user/MyDocs/Downloads
2. Create a small script with something like this:
Code:
#!/bin/sh

if [ ! -f /path/where is/theme-setting-app/need to be installed ]; then
   echo "Theme setting not installed, trying to install..."
   echo "" | dpkg -i /home/user/MyDocs/Downloads/themesetting.deb || echo "failed to install theme setting"
fi

if [ -f /path/where is/theme-setting-app/need to be installed ]
then /path/where is/theme-setting-app/need to be installed
else
    echo "theme-setting-app not installed. exiting..."
    sleep 2
    exit 0
fi
Put this script also to /home/user/MyDocs/Downloads
3. In your postinst script add command to run this script:
Code:
sh /home/user/MyDocs/Downloads/my-script.sh
Maybe it will work for you..