Make errors actually go to the log.

This commit is contained in:
2023-08-21 16:26:32 +01:00
parent 0da50df2c6
commit c6af03be89

7
run.sh
View File

@@ -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)"