Skip to content

Commit abaa8e1

Browse files
committed
Update iris_ctl script for nginx
1 parent 99b46c0 commit abaa8e1

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

bin/iris_ctl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# /usr/bin/iris_ctl -- Script for initializing and updating IRIS
44
#
5-
# Copyright (C) 2012-2025 Minnesota Department of Transportation
5+
# Copyright (C) 2012-2026 Minnesota Department of Transportation
66
#
77
# This program is free software; you can redistribute it and/or modify
88
# it under the terms of the GNU General Public License as published by
@@ -94,10 +94,12 @@ function create_tms_database() {
9494
su --login postgres -c "$create_db"
9595
}
9696

97-
function configure_selinux() {
98-
echo "Configuring SELinux for nginx"
97+
function configure_nginx() {
98+
echo "Configuring nginx"
9999
semanage port -a -t http_port_t -p tcp 3030
100100
setsebool -P httpd_can_network_connect true
101+
mkdir /var/cache/nginx/wyrmcast-iris
102+
chown nginx:nginx /var/cache/nginx/wyrmcast-iris
101103
}
102104

103105
function configure_firewall() {
@@ -144,7 +146,7 @@ case "$1" in
144146
init_db
145147
create_tms_user
146148
create_tms_database
147-
configure_selinux
149+
configure_nginx
148150
configure_firewall
149151
configure_services
150152
create_links

0 commit comments

Comments
 (0)