fix Bug 61960 - Add authentication for supervisord (#598)
This commit is contained in:
parent
f03bc7ec18
commit
09b9a73637
2 changed files with 5 additions and 0 deletions
|
@ -496,6 +496,7 @@ update_supervisor_settings(){
|
|||
cp ${SYSCONF_TEMPLATES_DIR}/supervisor/supervisor /etc/init.d/
|
||||
# Copy modified supervisor config
|
||||
cp ${SYSCONF_TEMPLATES_DIR}/supervisor/supervisord.conf /etc/supervisor/supervisord.conf
|
||||
sed "s_\(password =\).*_\1 $(pwgen -s 20)_" -i /etc/supervisor/supervisord.conf
|
||||
sed "s/COMPANY_NAME/${COMPANY_NAME}/g" -i ${SYSCONF_TEMPLATES_DIR}/supervisor/ds/*.conf
|
||||
cp ${SYSCONF_TEMPLATES_DIR}/supervisor/ds/*.conf /etc/supervisor/conf.d/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue