Skip to content

Commit 10a48c1

Browse files
committed
Clarify user=root in supervisord.conf
to prevent "Supervisor running as root" warning
1 parent 660b4bf commit 10a48c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

assets/build/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ echo "UseDNS no" >> /etc/ssh/sshd_config
251251
# move supervisord.log file to ${GITLAB_LOG_DIR}/supervisor/
252252
sed -i "s|^[#]*logfile=.*|logfile=${GITLAB_LOG_DIR}/supervisor/supervisord.log ;|" /etc/supervisor/supervisord.conf
253253

254+
# prevent confusing warning "CRIT Supervisor running as root" by clarify run as root
255+
# user not defined in supervisord.conf by default, so just append it after [supervisord] block
256+
sed -i "/\[supervisord\]/a user=root" /etc/supervisor/supervisord.conf
257+
254258
# move nginx logs to ${GITLAB_LOG_DIR}/nginx
255259
sed -i \
256260
-e "s|access_log /var/log/nginx/access.log;|access_log ${GITLAB_LOG_DIR}/nginx/access.log;|" \

0 commit comments

Comments
 (0)