mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-18 03:02:56 +00:00
Merge pull request #4122 from Gabrielgvl/fix/server-schedule-pipefail
fix: preserve server schedule failures through tee pipeline
(cherry picked from commit 3e306e5dba)
[skip ci]
This commit is contained in:
committed by
Dokploy Bot
parent
8545a1d9e7
commit
6ec530043e
@@ -174,7 +174,7 @@ export const runCommand = async (scheduleId: string) => {
|
|||||||
const { SCHEDULES_PATH } = paths(true);
|
const { SCHEDULES_PATH } = paths(true);
|
||||||
const fullPath = path.join(SCHEDULES_PATH, appName || "");
|
const fullPath = path.join(SCHEDULES_PATH, appName || "");
|
||||||
const command = `
|
const command = `
|
||||||
set -e
|
set -euo pipefail
|
||||||
echo "Running script" >> ${deployment.logPath};
|
echo "Running script" >> ${deployment.logPath};
|
||||||
bash -c ${fullPath}/script.sh 2>&1 | tee -a ${deployment.logPath} || {
|
bash -c ${fullPath}/script.sh 2>&1 | tee -a ${deployment.logPath} || {
|
||||||
echo "❌ Command failed" >> ${deployment.logPath};
|
echo "❌ Command failed" >> ${deployment.logPath};
|
||||||
|
|||||||
Reference in New Issue
Block a user