Make errors actually go to the log.
This commit is contained in:
7
run.sh
7
run.sh
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
LOG=/home/ppetru/instasync/log
|
exec 1>>/home/ppetru/instasync/log
|
||||||
|
exec 2>&1
|
||||||
|
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
date >> ${LOG}
|
date
|
||||||
node sync.js "$(docker inspect -f {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}} alo-db)" 2>&1 >> ${LOG}
|
node sync.js "$(docker inspect -f {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}} alo-db)"
|
||||||
|
|||||||
Reference in New Issue
Block a user