Validating user input with debconf

2015-08-09 Thread Yurkao
Hello mentors I have the following question: I want to validate user input while configuring the package and if user provides incorrect input - reprompt question until valid value is provided. Is it a good practice to do that with debconf? If it is - where should I do this ? In config script? P

Moveп

2015-08-08 Thread Yurkao
Best regards, Yurii Oleynikov -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/e58951da-2634-4bc5-bc46-39b3ee38d...@gmail.com

Debconf, package.config script and subst+multiselect

2015-05-04 Thread Yurkao
Dear mentors, As I've understood from debconf(7): - package config script runs twice during the deb installation As a result: - package config script must be idempotent and must not/should not ask questions twice. As I understand,I should control not asking question twice by checking if retur

Re: Starting services after installing a package

2015-02-19 Thread Yurkao
You need to make your package be depend (predepend?) on uwsgi and Apache and trigger them on postinst 'configure' and prerm 'remove' Best regards, Yurii Oleynikov > 19 февр. 2015 г., в 19:59, Jose Guerrero написал(а): > > Hi everyone! > > I am packaging a django app and I would like that afte