Hello, I created a package. In my preinst I put the line:
psql -p $port -d DB -U db -h $INPUTDB -f /opt/script.sh" &> /dev/null I set in my makefile: package = mypackage install -m 755 debian/scripts-bd/script.sh $$packagename/opt/ When I run dpkg-buildpackage, the package is created. But when i run the dpkg -i package.deb, the script.sh is not foud. With pwd, i saw the current directory /root. Still the command line below is not executed. I want a single package, where the file script.sh has been into the package. So when i type : dpkg -i package.deb, the script is executed and the files script.sh are found, and the command below be excuted with success. Best regards, Faria __________________________________________________ Fale com seus amigos de graça com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]