<commit_before>WORKSPACE_ID=$1
PRIMARYKEY=$2
ARTIFACTS_LOCATION=$3
DNS_NAME=$4

wget $ARTIFACTS_LOCATION/rsyslog.conf

mv rsyslog.conf /etc/

echo $WORKSPACE_ID $PRIMARYKEY

wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh && sh onboard_agent.sh -w $WORKSPACE_ID -s $PRIMARYKEY -d opinsights.azure.com

apt install snapd

snap install core
snap refresh core

snap install --classic certbot

ln -s /snap/bin/certbot /usr/bin/certbot

sudo certbot certonly --standalone --register-unsafely-without-email --domain $DNS_NAME

service rsyslog restart<commit_msg>Add non interactive flags for certificate generation<commit_after>WORKSPACE_ID=$1
PRIMARYKEY=$2
ARTIFACTS_LOCATION=$3
DNS_NAME=$4

wget $ARTIFACTS_LOCATION/rsyslog.conf

mv rsyslog.conf /etc/

echo $WORKSPACE_ID $PRIMARYKEY

wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh && sh onboard_agent.sh -w $WORKSPACE_ID -s $PRIMARYKEY -d opinsights.azure.com

apt install snapd

snap install core
snap refresh core

snap install --classic certbot

ln -s /snap/bin/certbot /usr/bin/certbot

sudo certbot certonly --standalone --register-unsafely-without-email -n --agree-tos --domain $DNS_NAME

service rsyslog restart
{'fraction_non_alphanumeric': 0.10061919504643962, 'fraction_numerical': 0.006191950464396285, 'mean_word_length': 4.95852534562212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '229361', 'n_tokens_mistral': 474, 'n_tokens_neox': 463, 'n_words': 105}