Fix permissions on OPDS feeds

This commit is contained in:
Alex Cabal 2020-06-25 01:28:07 -05:00
parent 6252cff1e5
commit ffa3ab8a74
3 changed files with 20 additions and 11 deletions

View file

@ -227,7 +227,10 @@ if [ "${verbose}" = "true" ]; then
printf "Rebuilding OPDS catalog ... "
fi
bash -c "php \"${scriptsDir}\"/generate-opds.php --webroot \"${webRoot}\" --weburl \"${webUrl}\""
php "${scriptsDir}/generate-opds.php" --webroot "${webRoot}" --weburl "${webUrl}"
sudo chown se:committers /standardebooks.org/web/www/opds/*.xml
sudo chmod 664 /standardebooks.org/web/www/opds/*.xml
if [ "${verbose}" = "true" ]; then
printf "Done.\n"