File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ function post_install_nginx() {
172
172
mkdir -p ${NGINX} conf.d/
173
173
mkdir -p ${NGINX} lua_modules/
174
174
# Copy main config file
175
- cp -f ${SCRIPT_PATH} config/nginx/nginx.conf ${NGINX} nginx.conf
175
+ cp -f ${SCRIPT_PATH} config/* ${NGINX}
176
176
chmod +x ${NGINX} nginx.conf
177
177
# Copy lua modules
178
178
rm -rf ${NGINX} lua_modules/* && mkdir -p ${NGINX} lua_modules/
@@ -187,14 +187,17 @@ function post_install_nginx() {
187
187
188
188
# Customize: main /etc/nginx/nginx.conf
189
189
# Prepend: number of cores
190
- sed -i -e " 1iworker_processes ${CPUS} " ${NGINX} nginx.conf
190
+ sed -i -e " 1iworker_processes ${CPUS} ; " ${NGINX} nginx.conf
191
191
192
192
193
193
# Install modules (the ones that don't install via include)
194
194
# TODO:: install lua modules (if needed)
195
195
196
196
# Set init.d service
197
197
# TODO:: auto start
198
+
199
+ # Restart ctl daemon
200
+ systemctl daemon-reload
198
201
}
199
202
200
203
function create_installed_file() {
You can’t perform that action at this time.
0 commit comments