Skip to content

Commit

Permalink
Issue 22: Removed parameter checking
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongT16 committed Dec 3, 2024
1 parent 349d54d commit 7bc116d
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,2 @@
#!/bin/bash
CONFIG_FILE=/root/vacation_calendar_sync_config.yaml
REQUIRED_PARAMETERS="client_id tenant_id recipient_email scopes group_name shared_calendar_name category_name category_color vcs_directory AM_config PM config days_out update_interval email_list_update_interval"

if [[ -f "$CONFIG_FILE" ]]; then
for i in $REQUIRED_PARAMETERS; do
result=$(grep -q $i $CONFIG_FILE; echo $?)
if [ "$result" -ne 0 ]; then
echo $i is missing
exit 1
fi
done
python3 OutlookCalendar.py -s
else
echo Need config file named vacation_calendar_sync_config at your local home directory
fi
python3 OutlookCalendar.py -s

0 comments on commit 7bc116d

Please sign in to comment.