Set owner for html page too.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 26 Nov 2012 21:58:08 +0000 (22:58 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 26 Nov 2012 21:58:08 +0000 (22:58 +0100)
matrixgen-cron.sh

index 9e06fd4..f4152c0 100755 (executable)
@@ -12,9 +12,10 @@ for dir in `ls -1 | grep -v '\.'`; do
                        if test $page = 'matrix'; then
                                rm -f ./report-*.twiki
                                mv /tmp/report-*.twiki .
-                               chown apache:users $page.html report-*.twiki
+                               chown apache:users report-*.twiki
                                /sbin/restorecon report-*.twiki
                        fi
+                       chown apache:users $page.html
                        /sbin/restorecon $page.html
                fi
         done