Ensure that www/images/covers exists and belongs to the correct group.

This commit is contained in:
Danny Bautista 2019-06-05 18:59:59 -04:00 committed by Alex Cabal
parent b1c863ed93
commit e5b611c315

View file

@ -37,6 +37,8 @@ do
fi fi
done done
mkdir -p /standardebooks.org/www/images/covers/
for dir in "$@" for dir in "$@"
do do
if [ "${dir}" = "" ] || [ "${dir}" = "-v" ] || [ "${dir}" = "--verbose" ]; then if [ "${dir}" = "" ] || [ "${dir}" = "-v" ] || [ "${dir}" = "--verbose" ]; then
@ -146,9 +148,11 @@ do
rm --preserve-root --recursive --force "${workDir}" "${imgWorkDir}" rm --preserve-root --recursive --force "${workDir}" "${imgWorkDir}"
sudo chgrp --preserve-root --recursive se "${webDir}" sudo chgrp --preserve-root --recursive se "${webDir}"
sudo chmod --preserve-root --recursive g+ws "${webDir}" sudo chmod --preserve-root --recursive g+ws "${webDir}"
sudo chgrp --preserve-root --recursive se "/standardebooks.org/www/images/covers/"
sudo chmod --preserve-root --recursive g+ws "/standardebooks.org/www/images/covers/"
if [ "${verbose}" = "true" ]; then if [ "${verbose}" = "true" ]; then
printf "Flushing PHP-FPM opcache and apcu cache ... " printf "Flushing PHP-FPM opcache and apcu cache ... "
fi fi