chown/chmod files during deploy within their correct scripts, instead of in the parent deploy script

This commit is contained in:
Alex Cabal 2022-07-13 11:25:06 -05:00
parent 306a77ce96
commit 4baea8536d
3 changed files with 17 additions and 6 deletions

View file

@ -411,9 +411,6 @@ if [ "${feeds}" = "true" ]; then
"${scriptsDir}/generate-feeds" --webroot "${webRoot}" --weburl "${webUrl}"
sudo chown --recursive se:committers "${webRoot}"/feeds/*/{*.xml,*/*.xml}
sudo chmod --recursive a+r,ug+w,a+X "${webRoot}"/feeds/*/
if [ "${verbose}" = "true" ]; then
printf "Done.\n"
fi
@ -433,9 +430,6 @@ if [ "${bulkDownloads}" = "true" ]; then
"${scriptsDir}/generate-bulk-downloads" --webroot "${webRoot}"
sudo chown --recursive se:committers "${webRoot}"/bulk-downloads/*/
sudo chmod --recursive a+r,ug+w,a+X "${webRoot}"/bulk-downloads/*/
if [ "${verbose}" = "true" ]; then
printf "Done.\n"
fi
@ -445,3 +439,7 @@ if [ "${bulkDownloads}" = "true" ]; then
fi
fi
fi
if [ "${verbose}" = "true" ]; then
printf "Finished processing ebook.\n"
fi