Skip to content

Commit 9105813

Browse files
anyspasaintping
authored andcommitted
optimize nginx bash script , replace nobody with current user name (#368)
1 parent 6f1001b commit 9105813

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

weevent-build/modules/nginx/conf/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# replace default include line to "include ./conf.d/tcp_tls.conf"
1010
########################################################################################################################
1111

12-
#user nobody;
12+
user nobody;
1313
worker_processes 10;
1414

1515
#error_log logs/error.log;

weevent-build/modules/nginx/install-nginx.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function nginx_setup() {
3232

3333
sed -i "s/443/$nginx_port/g" ${nginx_path}/conf/conf.d/https.conf
3434
sed -i "s/8080/$nginx_port/g" ${nginx_path}/conf/conf.d/http_quickinstall.conf
35+
sed -i "s/nobody/${USER}/g" ${nginx_path}/conf/nginx.conf
3536

3637
if [[ "$ssl" = "true" ]]; then
3738
sed -i "s/http.conf/https.conf/g" ${nginx_path}/conf/nginx.conf

0 commit comments

Comments
 (0)