Skip to content

Commit b73eae4

Browse files
committed
logs duplicados
1 parent 5bf5d7b commit b73eae4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker-entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NC='\033[0m' # No Color
1717

1818
# Função para logs de sucesso
1919
log_success() {
20-
echo -e "${GREEN}[✓] $1${NC}" | tee -a /dev/stdout
20+
echo -e "${GREEN}[✓] $1${NC}"
2121
}
2222

2323
# Função para logs de erro
@@ -28,10 +28,10 @@ log_error() {
2828

2929
# Função para logs de informação
3030
log_info() {
31-
echo -e "${YELLOW}[i] $1${NC}" | tee -a /dev/stdout
31+
echo -e "${YELLOW}[i] $1${NC}"
3232
}
3333

34-
echo -e "\n${YELLOW}=== Iniciando Container Sintoniza ===${NC}\n" | tee -a /dev/stdout
34+
echo -e "\n${YELLOW}=== Iniciando Container Sintoniza ===${NC}\n"
3535

3636
# === Validação de Variáveis de Ambiente ===
3737
log_info "Validando variáveis de ambiente..."
@@ -118,7 +118,7 @@ EOF
118118
log_success "Sistema de logs configurado"
119119

120120
# === Inicialização dos Serviços ===
121-
echo -e "\n${YELLOW}=== Iniciando serviços ===${NC}\n" | tee -a /dev/stdout
121+
echo -e "\n${YELLOW}=== Iniciando serviços ===${NC}\n"
122122

123123
# Iniciando Cron com redirecionamento de logs
124124
log_info "Iniciando serviço Cron..."
@@ -169,7 +169,7 @@ fi
169169
log_info "Iniciando Nginx..."
170170
exec nginx -g "daemon off;" 2>&1 | logger -t nginx
171171

172-
echo -e "\n${GREEN}=== Container Sintoniza inicializado ===${NC}\n" | tee -a /dev/stdout
172+
echo -e "\n${GREEN}=== Container Sintoniza inicializado ===${NC}\n"
173173

174174
wait -n
175175

0 commit comments

Comments
 (0)