Bas Couwenberg pushed to branch master at Debian GIS Project / routino
Commits: a1980352 by Bas Couwenberg at 2018-07-24T14:59:01+02:00 Test for results before executing chown on them. (closes: #904405) - - - - - 2977420e by Bas Couwenberg at 2018-07-24T15:14:09+02:00 Set distribution to unstable. - - - - - 2 changed files: - debian/changelog - debian/routino-www.postinst Changes: ===================================== debian/changelog ===================================== --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +routino (3.2-4) unstable; urgency=medium + + * Test for results before executing chown on them. + (closes: #904405) + + -- Bas Couwenberg <[email protected]> Tue, 24 Jul 2018 15:13:47 +0200 + routino (3.2-3) unstable; urgency=medium * Change priority from extra to optional. ===================================== debian/routino-www.postinst ===================================== --- a/debian/routino-www.postinst +++ b/debian/routino-www.postinst @@ -43,7 +43,12 @@ case "$1" in mkdir -p /var/lib/routino/results fi chown www-data:www-data /var/lib/routino/results - chown www-data:www-data /var/lib/routino/results/* + if [ `ls /var/lib/routino/results/ | wc -l` -ge 1 ]; then + chown www-data:www-data /var/lib/routino/results/* + fi + if [ `ls /var/lib/routino/results/*/* | wc -l` -ge 1 ]; then + chown www-data:www-data /var/lib/routino/results/*/* + fi webservers="apache2" View it on GitLab: https://salsa.debian.org/debian-gis-team/routino/compare/f7defa40ff7c5dff8431667777ae06d968b1fff6...2977420ed53cc6eda68de1672a8cdb87639dfe3f -- View it on GitLab: https://salsa.debian.org/debian-gis-team/routino/compare/f7defa40ff7c5dff8431667777ae06d968b1fff6...2977420ed53cc6eda68de1672a8cdb87639dfe3f You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
