diff --git a/platform/shell-sync/sync.sh b/platform/shell-sync/sync.sh index dc35c5e4..b0689024 100644 --- a/platform/shell-sync/sync.sh +++ b/platform/shell-sync/sync.sh @@ -59,3 +59,16 @@ validate_settings() { return 1 fi + if [ -z "$SYNC_CRON" ] && ! [[ "$SYNC_INTERVAL" =~ ^[1-9][0-9]*$ ]]; then + log "Configuration error: SYNC_INTERVAL must be a positive number of seconds" + return 1 + fi + + case "$NOTIFY_MODE" in + none|batch_success|account_success|failure) ;; + *) + log "Configuration error: NOTIFY_MODE must be none, batch_success, account_success, or failure" + return 1 + ;; + esac +