...
 
Commits (2)
routino (3.2-4) unstable; urgency=medium
* Test for results before executing chown on them.
(closes: #904405)
-- Bas Couwenberg <sebastic@debian.org> Tue, 24 Jul 2018 15:13:47 +0200
routino (3.2-3) unstable; urgency=medium
* Change priority from extra to optional.
......
......@@ -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"
......