Skip to content

Commit

Permalink
Explicitly invoke expect here
Browse files Browse the repository at this point in the history
This avoids any potential problems with sftp.sh not being executable.
  • Loading branch information
waldoj committed Dec 28, 2023
1 parent d67b2c1 commit ae7ad2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy/crontab.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# The core update script. This runs hourly at 55 after, 4 minutes after DLAS outputs their data
55 6-23 * * * rs-machine/cron/sftp.sh BILLS.CSV rs-machine/cron/bills.csv
55 6-23 * * * rs-machine/cron/sftp.sh Committees.csv rs-machine/cron/committees.csv
55 6-23 * * * /usr/bin/expect rs-machine/cron/sftp.sh BILLS.CSV rs-machine/cron/bills.csv
55 6-23 * * * /usr/bin/expect rs-machine/cron/sftp.sh Committees.csv rs-machine/cron/committees.csv
55 6-23 * * * /usr/bin/php rs-machine/cron/update.php

# The update script that handles the advancing of bills. This runs hourly at 2 after, 2 minutes after DLAS outputs their data.
02 6-23 * * * rs-machine/cron/sftp.sh HISTORY.CSV rs-machine/cron/history.csv
02 6-23 * * * /usr/bin/expect rs-machine/cron/sftp.sh HISTORY.CSV rs-machine/cron/history.csv
02 6-23 * * * /usr/bin/php rs-machine/cron/update.php history

# The daily script that collects and tallies votes. This runs at 3:00, an hour after DLAS outputs their data.
0 3 * * * rs-machine/cron/sftp.sh VOTE.CSV rs-machine/cron/vote.csv
0 3 * * * /usr/bin/expect rs-machine/cron/sftp.sh VOTE.CSV rs-machine/cron/vote.csv
0 3 * * * /usr/bin/php rs-machine/cron/update.php vote

# Collects scheduled meetings and hearings.
Expand All @@ -18,7 +18,7 @@
0 6,9,12,15,18,21 * * * /usr/bin/php rs-machine/cron/update.php minutes

# Update the bill summaries (which is updated daily at 11:53).
59 11 * * * rs-machine/cron/sftp.sh Summaries.csv rs-machine/cron/summaries.csv
59 11 * * * /usr/bin/expect rs-machine/cron/sftp.sh Summaries.csv rs-machine/cron/summaries.csv
59 11 * * * /usr/bin/php rs-machine/cron/update.php summaries

# Update the bill full text.
Expand Down
1 change: 1 addition & 0 deletions deploy/sftp_credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
# Set up FTP credentials in the SFTP script.
sed -i -e "s|{LIS_FTP_PASSWORD}|${LIS_FTP_PASSWORD}|g" cron/sftp.sh
sed -i -e "s|{LIS_FTP_USERNAME}|${LIS_FTP_USERNAME}|g" cron/sftp.sh
sed -i -e "s|{LIS_SESSION_ID}|${LIS_SESSION_ID}|g" cron/sftp.sh

0 comments on commit ae7ad2a

Please sign in to comment.