Log script runs.

This commit is contained in:
2023-01-01 22:45:05 +00:00
parent 6e7c874606
commit 2fed28bc27
2 changed files with 6 additions and 1 deletions

6
run.sh
View File

@@ -1,3 +1,7 @@
#!/bin/sh
node sync.js "$(docker inspect -f {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}} alo-db)"
LOG=/home/ppetru/instasync/log
cd $(dirname $0)
date >> ${LOG}
node sync.js "$(docker inspect -f {{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}} alo-db)" 2>&1 >> ${LOG}