diff options
author | Daniel Hansson <daniel@techandme.se> | 2017-07-04 22:41:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 22:41:24 +0300 |
commit | fa8752424b4d6b1d7cbef323dbd888f7402a5c9b (patch) | |
tree | e181d7c7498ec6d8f31296555c423f588de6d044 /apps | |
parent | c39c7597272de563e024419f23ec905df2c01d4b (diff) |
set www-data permissions on preview log
Diffstat (limited to 'apps')
-rw-r--r-- | apps/previewgenerator.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/previewgenerator.sh b/apps/previewgenerator.sh index 8a52d5c4..53378b47 100644 --- a/apps/previewgenerator.sh +++ b/apps/previewgenerator.sh @@ -31,4 +31,6 @@ then chown -R www-data:www-data $NCPATH/apps crontab -u www-data -l | { cat; echo "@daily php -f $NCPATH/occ preview:pre-generate >> /var/log/previewgenerator.log"; } | crontab -u www-data - sudo -u www-data php "$NCPATH"/occ preview:generate-all + touch /var/log/previewgenerator.log + chown www-data:www-data /var/log/previewgenerator.log fi |