From c6af03be8958caf2c60b04316e389d1c00253e29 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Mon, 21 Aug 2023 16:26:32 +0100 Subject: [PATCH] Make errors actually go to the log. --- run.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 924d4ba..98156bf 100755 --- a/run.sh +++ b/run.sh @@ -1,7 +1,8 @@ #!/bin/sh -LOG=/home/ppetru/instasync/log +exec 1>>/home/ppetru/instasync/log +exec 2>&1 cd $(dirname $0) -date >> ${LOG} -node sync.js "$(docker inspect -f {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}} alo-db)" 2>&1 >> ${LOG} +date +node sync.js "$(docker inspect -f {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}} alo-db)"