Fix garaze_racunovodstvo.sh

This commit is contained in:
Gašper Fele-Žorž 2025-11-06 10:45:35 +01:00
parent 39276edb93
commit ed4518290a
2 changed files with 4 additions and 4 deletions

View file

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
GARAZEDIR="~/garaze/tmp" GARAZEDIR="${HOME}/garaze/tmp"
# RECIPIENTS="polz@fri.uni-lj.si" # RECIPIENTS="polz@fri.uni-lj.si"
# RECIPIENTS="anita.strmole@fri.uni-lj.si" # RECIPIENTS="anita.strmole@fri.uni-lj.si"
# RECIPIENTS="racunovodstvo@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 # cd /home/registrator/siemens-spica-rilec
rm $GARAZEDIR/*.xlsx 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 echo "Garaže za pretekli mesec" | mail -s "Garaže za pretekli mesec" "$RECIPIENTS" -A $GARAZEDIR/*.xlsx

View file

@ -15,7 +15,7 @@
- name: Install packages - name: Install packages
package: package:
name: git,py3-pip name: git,py3-pip,mailutils,py3-openpyxl
- name: Clone siemens-spica-rilec - name: Clone siemens-spica-rilec
become: yes become: yes