Fix garaze_racunovodstvo.sh
This commit is contained in:
parent
39276edb93
commit
ed4518290a
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue