From d01b92e81d64446799280c064eb8cebc84802cc6 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 9 Oct 2020 00:02:36 +0200 Subject: Sending butler output via lftp --- ausbutler-single.sh | 3 +++ config.template/send.lftp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ausbutler-single.sh b/ausbutler-single.sh index 2f95c68..820086d 100755 --- a/ausbutler-single.sh +++ b/ausbutler-single.sh @@ -14,6 +14,9 @@ ls config.template | while read CONFIGFILE do envsubst < config.template/$CONFIGFILE > config/$CONFIGFILE done + python jfrteamy-ausbutler/butler.py calculate generate nowait +lftp -f config/send.lftp + echo "Done" diff --git a/config.template/send.lftp b/config.template/send.lftp index 5c422f7..fcbc5da 100644 --- a/config.template/send.lftp +++ b/config.template/send.lftp @@ -1,3 +1,3 @@ -open -u ${LIGA_AUSBUTLER_FTP_USER} -p ${LIGA_AUSBUTLER_FTP_PASS} ${LIGA_AUSBUTLER_FTP_HOST} +open -u ${LIGA_AUSBUTLER_FTP_USER},${LIGA_AUSBUTLER_FTP_PASS} ${LIGA_AUSBUTLER_FTP_HOST} cd ${LIGA_AUSBUTLER_FTP_PATH} mput ${LIGA_AUSBUTLER_OUTPUT_PATH}/* -- cgit v1.2.3