#!/bin/bash
#appname = "ipLex.Profi.app"

if [ -d "/Applications/ipLex.Profi.app/Contents/" ]
then
    chmod -R 0777 /Applications/ipLex.Profi.app/Contents/
fi

tmp=$(getconf DARWIN_USER_TEMP_DIR)

if [ -f /Applications/ipLex.Profi.app/Contents/Resources/user/config.ini ]
then
    cp /Applications/ipLex.Profi.app/Contents/Resources/user/config.ini $tmp
fi

if [ -f /Applications/ipLex.Profi.app/Contents/Resources/user/fav.db ]
then
cp /Applications/ipLex.Profi.app/Contents/Resources/user/fav.db $tmp
fi

if [ -f /Applications/ipLex.Profi.app/Contents/Resources/user/iplex.key ]
then
    cp /Applications/ipLex.Profi.app/Contents/Resources/user/iplex.key $tmp
fi



if [ -d "/Applications/ipLex.Profi.app/Contents/" ]
then
    chmod -R 0777 /Applications/ipLex.Profi.app/Contents/
fi
