This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Trivy Security Scanner Installation Script | |
# Supports: Ubuntu/Debian, RHEL/CentOS/Fedora, Arch, openSUSE, Alpine, macOS | |
# Version: Latest stable release | |
set -e | |
# Colors for output | |
RED='\033[0;31m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from pymongo import MongoClient, errors | |
def add_website_id_to_auth_info(mongo_uri, database_name, collection_name): | |
""" | |
MongoDB Python script to add website_id to auth_info if it doesn't exist. | |
The website_id value will be taken from account_info.crm_id | |
Only processes documents with crm_platform = "crispchat" and status = "Active" |