Skip to content

Commit

Permalink
Update makeChanges.sh: set mode and group of new settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Jun 7, 2024
1 parent 092d2ad commit 4ab62a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/makeChanges.sh
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,11 @@ do
2>&1 )"
RET=$?

if [[ -f ${SETTINGS_FILE} ]]; then
# Make sure the web server can update it.
chmod 664 "${SETTINGS_FILE}" && sudo chgrp "${WEBSERVER_GROUP}" "${SETTINGS_FILE}"
fi

if [[ ${RET} -ne 0 ]]; then
echo -n -e "${wERROR}ERROR: Unable to create '${OPTIONS_FILE}'"
if [[ ${OPTIONS_FILE_ONLY} == "true" ]]; then
Expand Down

0 comments on commit 4ab62a8

Please sign in to comment.