From ed4518290abca8dd90f05b4805db7a59c88b8e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Fele-=C5=BDor=C5=BE?= Date: Thu, 6 Nov 2025 10:45:35 +0100 Subject: [PATCH] Fix garaze_racunovodstvo.sh --- roles/registrator/files/garaze_racunovodstvo.sh | 6 +++--- roles/registrator/tasks/main.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/registrator/files/garaze_racunovodstvo.sh b/roles/registrator/files/garaze_racunovodstvo.sh index 28d1f7b..b1ac17f 100644 --- a/roles/registrator/files/garaze_racunovodstvo.sh +++ b/roles/registrator/files/garaze_racunovodstvo.sh @@ -1,12 +1,12 @@ #!/bin/sh -GARAZEDIR="~/garaze/tmp" +GARAZEDIR="${HOME}/garaze/tmp" # RECIPIENTS="polz@fri.uni-lj.si" # RECIPIENTS="anita.strmole@fri.uni-lj.si" # RECIPIENTS="racunovodstvo@fri.uni-lj.si" -RECIPIENTS="$(cat ~/garage_recipients.txt)" +RECIPIENTS="$(cat ${HOME}/garaze_recipients.txt)" # cd /home/registrator/siemens-spica-rilec rm $GARAZEDIR/*.xlsx -~/siemens-spica-rilec/garage_count.py --employee --calculation --format xlsx ~/data "$GARAZEDIR/garaze_{start}_{end}.xlsx" +${HOME}/siemens-spica-rilec/garage_count.py --employee --calculation --format xlsx ~/data "$GARAZEDIR/garaze_{start}_{end}.xlsx" echo "Garaže za pretekli mesec" | mail -s "Garaže za pretekli mesec" "$RECIPIENTS" -A $GARAZEDIR/*.xlsx diff --git a/roles/registrator/tasks/main.yml b/roles/registrator/tasks/main.yml index fb49f81..b527b06 100644 --- a/roles/registrator/tasks/main.yml +++ b/roles/registrator/tasks/main.yml @@ -15,7 +15,7 @@ - name: Install packages package: - name: git,py3-pip + name: git,py3-pip,mailutils,py3-openpyxl - name: Clone siemens-spica-rilec become: yes