Docker/restart-nginx.sh
Rama master · réplica de lectura del repositorio original.
#! /bin/bash
if [ "${DASUPERVISORUSERNAME:-null}" != "null" ]; then
SUPERVISORCMD="supervisorctl --serverurl http://localhost:9001 --username ${DASUPERVISORUSERNAME} --password ${DASUPERVISORPASSWORD}"
else
SUPERVISORCMD="supervisorctl --serverurl http://localhost:9001"
fi
${SUPERVISORCMD} restart nginx > /dev/null