mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Ensure that www/images/covers exists and belongs to the correct group.
This commit is contained in:
parent
b1c863ed93
commit
e5b611c315
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue