Skip to content

Commit

Permalink
Merge pull request #1609 from it-novum/ITC-3125
Browse files Browse the repository at this point in the history
ITC-3125 Set file permissions for Nginx after an (possible) update of…
  • Loading branch information
ibering authored Dec 11, 2023
2 parents fd301f1 + d1d9f06 commit 1550a4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UPDATE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,12 @@ mkdir -p /opt/openitc/var/prometheus
chown nagios:nagios /opt/openitc/var/prometheus
mkdir -p /opt/openitc/var/prometheus/victoria-metrics

# ITC-3125 Fix file permissions after an (possible) update of Nginx
if [[ "$OS_BASE" == "RHEL" ]]; then
chown www-data:root /var/lib/nginx -R
chown www-data:root /var/lib/nginx/tmp -R
fi

if [[ -d /opt/openitc/frontend/plugins/MapModule/webroot/img/ ]]; then
chown -R www-data:www-data /opt/openitc/frontend/plugins/MapModule/webroot/img/
fi
Expand Down

0 comments on commit 1550a4b

Please sign in to comment.